of static method
Retrieves the closest ancestor FormState in the tree.
Implementation
static FormState? of(BuildContext context) {
final scope = context.dependOnInheritedWidgetOfExactType<FormScope>();
return scope?.formState;
}
Retrieves the closest ancestor FormState in the tree.
static FormState? of(BuildContext context) {
final scope = context.dependOnInheritedWidgetOfExactType<FormScope>();
return scope?.formState;
}