maybeOf static method
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>();