ElevatedButtonTheme constructor Null safety

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

Create a ElevatedButtonTheme.

The data parameter must not be null.

Implementation

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