Field<T extends Object, V> constructor

const Field<T extends Object, V>(
  1. String name,
  2. Object? getter(
    1. T
    )?, {
  3. String? key,
  4. FieldMode mode = FieldMode.field,
  5. Function? arg,
  6. bool opt = false,
  7. V? def,
  8. MappingHook? hook,
  9. Object? data,
})

Implementation

const Field(
  this.name,
  this.getter, {
  String? key,
  this.mode = FieldMode.field,
  this.arg,
  this.opt = false,
  this.def,
  this.hook,
  this.data,
}) : key = key ?? name;