maybeOf static method

VyuhFailure? maybeOf(
  1. BuildContext context
)

The nearest failure, or null when the view was built outside one.

Implementation

static VyuhFailure? maybeOf(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<VyuhFailureScope>()?.failure;