of static method

  1. @useResult
FBottomNavigationBarData of(
  1. BuildContext context
)

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!;
}