DrawerTheme constructor Null safety

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

Creates a theme that defines the DrawerThemeData properties for a Drawer.

Implementation

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