Field.widget constructor

Field.widget({
  1. required Widget child,
})

Field.widget is a constructor that helps in managing widget fields

Implementation

Field.widget({required Widget child})
    : cast = FormCast.widget(
        child: child,
      ),
      autofocus = false {
  key = _randomKey();
}