NavigationRailTheme constructor Null safety

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

Creates a navigation rail theme that controls the NavigationRailThemeData properties for a NavigationRail.

The data argument must not be null.

Implementation

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