GlassSwitch constructor
const
GlassSwitch({
- required bool value,
- required ValueChanged<
bool> onChanged, - Key? key,
- Color? activeColor,
- Color? inactiveColor,
- Color thumbColor = Colors.white,
- double width = 58.0,
- double height = 26.0,
- LiquidGlassSettings? settings,
- bool useOwnLayer = false,
- GlassQuality quality = GlassQuality.standard,
Creates a glass switch.
Implementation
const GlassSwitch({
required this.value,
required this.onChanged,
super.key,
this.activeColor,
this.inactiveColor,
this.thumbColor = Colors.white,
this.width = 58.0,
this.height = 26.0,
this.settings,
this.useOwnLayer = false,
this.quality = GlassQuality.standard,
});