isValidOf static method

bool isValidOf(
  1. BuildContext context
)

Whether every field of the nearest RegexForm is valid; rebuilds the caller when that changes. False outside a RegexForm.

Implementation

static bool isValidOf(BuildContext context) =>
    context
        .dependOnInheritedWidgetOfExactType<RegexFormScope>()
        ?.notifier
        ?.isValid ??
    false;