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