FieldDescriptor<T, V> constructor

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

Implementation

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