maybeOf static method

AuthState? maybeOf(
  1. BuildContext context
)

Returns current AuthState of the auth flow. Could return null if no AuthFlowBuilder was found up the widget tree.

See AuthFlowBuilder for more examples.

Implementation

static AuthState? maybeOf(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<AuthStateProvider>()?.state;