IgnoreForm<T> constructor

const IgnoreForm<T>({
  1. Key? key,
  2. bool ignoring = true,
  3. required Widget child,
})

Creates an IgnoreForm widget.

Parameters:

  • child (Widget, required): The widget subtree to wrap
  • ignoring (bool, default: true): Whether to block form participation

Example:

IgnoreForm(
  ignoring: shouldIgnore,
  child: MyFormField(),
);

Implementation

const IgnoreForm({super.key, this.ignoring = true, required this.child});