FieldDescriptor<T, V> constructor
FieldDescriptor<T, V> ({
- required String name,
- required Getter getter,
- required List<
Object> annotations, - Type? elementType,
- Function? factoryConstructor,
- Setter? setter,
- bool isNullable = false,
- AbstractType<
dynamic, AbstractType< ? type,dynamic, AbstractType> >
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();
}