TextButtonTheme constructor Null safety

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

Create a TextButtonTheme.

The data parameter must not be null.

Implementation

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