maybeOf static method

FSidebarData? maybeOf(
  1. BuildContext context
)

Returns the FSidebarData of the FSidebar in the given context.

Contract

Throws AssertionError if there is no ancestor FSidebar in the given context.

Implementation

static FSidebarData? maybeOf(BuildContext context) => context.dependOnInheritedWidgetOfExactType<FSidebarData>();