FormEntry<T> constructor

const FormEntry<T>({
  1. required FormKey<T> key,
  2. required Widget child,
  3. Validator<T>? validator,
})

Creates a form entry with a typed key.

The key parameter must be a FormKey<T> to ensure type safety.

Implementation

const FormEntry(
    {required FormKey<T> super.key, required this.child, this.validator});