BottomNavigationBarTheme constructor Null safety

const BottomNavigationBarTheme(
  1. {Key? key,
  2. required BottomNavigationBarThemeData data,
  3. required Widget child}
)

Constructs a bottom navigation bar theme that configures all descendant BottomNavigationBar widgets.

The data must not be null.

Implementation

const BottomNavigationBarTheme({
  super.key,
  required this.data,
  required super.child,
}) : assert(data != null);