FieldDescriptor<T, V> constructor

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

Implementation

FieldDescriptor({
  required super.name,
  required super.annotations,
  this.elementType,
  this.factoryConstructor,
  required this.getter,
  this.setter,
  this.isNullable = false,
  AbstractType<dynamic, AbstractType>? type
}) {
  if ( type != null)
    this.type = type;
  else
    inferType(V, isNullable);
}