ButtonTheme.fromButtonThemeData constructor Null safety

const ButtonTheme.fromButtonThemeData(
  1. {Key? key,
  2. required ButtonThemeData data,
  3. required Widget child}
)

Creates a button theme from data.

The data argument must not be null.

Implementation

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