of static method

FormScope? of(
  1. BuildContext context
)

Retrieves the nearest FormScope from the widget tree.

Implementation

static FormScope? of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<FormScope>();
}