AutofillGroup constructor Null safety

const AutofillGroup(
  1. {Key? key,
  2. required Widget child,
  3. AutofillContextAction onDisposeAction = AutofillContextAction.commit}
)

Creates a scope for autofillable input fields.

The child argument must not be null.

Implementation

const AutofillGroup({
  Key? key,
  required this.child,
  this.onDisposeAction = AutofillContextAction.commit,
}) : assert(child != null),
     super(key: key);