SwitchThemeModifier constructor

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

Constructs a switch theme that configures all descendant Switch widgets.

Implementation

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