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({
  Key? key,
  required this.data,
  required Widget child,
}) : assert(data != null), super(key: key, child: child);