SwitchTheme constructor Null safety

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

Constructs a switch theme that configures all descendant Switch widgets.

Implementation

const SwitchTheme({
  super.key,
  required this.data,
  required super.child,
});