field<T, V> function

FieldDescriptor field<T, V>(
  1. String name, {
  2. AbstractType<V, AbstractType<dynamic, AbstractType>>? type,
  3. List<Object>? annotations,
  4. required Getter getter,
  5. Setter? setter,
  6. Type? elementType,
  7. Function? factoryConstructor,
  8. bool isFinal = false,
  9. bool isNullable = false,
})

Implementation

FieldDescriptor field<T,V>(String name, {
  AbstractType<V, AbstractType>? type,
  List<Object>? annotations,
  required Getter getter,
  Setter? setter,
  Type? elementType,
  Function? factoryConstructor,
  bool isFinal = false,
  bool isNullable = false
}) {
  return FieldDescriptor<T,V>(name: name, type: type, annotations: annotations ?? [], elementType: elementType, factoryConstructor: factoryConstructor, getter: getter, setter: setter, isNullable: isNullable);
}