InputForm constructor

InputForm(
  1. {Key key,
  2. bool autosave: true,
  3. bool autovalidate: false,
  4. @required Widget child,
  5. InputDecoration decoration,
  6. bool enabled: true,
  7. Map<String, dynamic> map,
  8. ValueChanged onChanged,
  9. ValueSetter onSaved,
  10. WillPopCallback onWillPop}
)

A container to group input widgets (fields) for data manipulation. It provides parameters which are used by all fields and methods which invoke the corresponding method in all fields. It can provide an InputDecoration which is used by all fields.

The optional map provides initial values to fields and stores changed values.

Implementation

InputForm({
  Key key,
  this.autosave = true,
  this.autovalidate = false,
  @required this.child,
  this.decoration,
  this.enabled = true,
  this.map,
  this.onChanged,
  this.onSaved,
  this.onWillPop,
})  : assert(autosave != null),
      assert(autovalidate != null),
      assert(child != null),
      assert(enabled != null),
      super(key: key);