Form constructor

const Form(
  1. {Key key,
  2. @required Widget child,
  3. bool autovalidate: false,
  4. WillPopCallback onWillPop,
  5. VoidCallback onChanged}
)

Creates a container for form fields.

The child argument must not be null.

Implementation

const Form({
  Key key,
  @required this.child,
  this.autovalidate = false,
  this.onWillPop,
  this.onChanged,
}) : assert(child != null),
     super(key: key);