Field constructor

Field(
  1. String key, {
  2. dynamic value,
  3. FormCast? cast,
  4. FormValidator? validate,
  5. bool autofocus = false,
  6. String? dummyData,
  7. String? style,
})

Implementation

Field(this.key,
    {this.value,
    FormCast? cast,
    this.validate,
    this.autofocus = false,
    this.dummyData,
    this.style})
    : cast = cast ?? FormCast();