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({
  super.key,
  required this.child,
  this.onDisposeAction = AutofillContextAction.commit,
}) : assert(child != null);