of static method

bool of(
  1. BuildContext context
)

Whether a form field round context shows an error.

Implementation

static bool of(BuildContext context) =>
    context
        .dependOnInheritedWidgetOfExactType<MinimalFieldErrorScope>()
        ?.wrong ??
    false;