NavigationBarTheme constructor Null safety

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

Creates a navigation rail theme that controls the NavigationBarThemeData properties for a NavigationBar.

The data argument must not be null.

Implementation

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