of static method
Returns the FBottomNavigationBarItemStyle and currently selected index of the FBottomNavigationBar in the
given context
.
Contract
Throws AssertionError if there is no ancestor FBottomNavigationBar in the given context
.
Implementation
@useResult
static FBottomNavigationBarData of(BuildContext context) {
final result = context.dependOnInheritedWidgetOfExactType<FBottomNavigationBarData>();
assert(result != null, 'No FBottomNavigationBarData found in context');
return result!;
}