maybeOf static method

Fluent2Account? maybeOf(
  1. BuildContext context
)

The account in force at context; null when the app publishes none, and the bars then draw no bell or avatar.

Implementation

static Fluent2Account? maybeOf(BuildContext context) => context
    .dependOnInheritedWidgetOfExactType<Fluent2AccountScope>()
    ?.account;