EmergentSwitch constructor
const
EmergentSwitch({
- EmergentSwitchStyle style = const EmergentSwitchStyle(),
- Key? key,
- Curve curve = Emergent.defaultCurve,
- Duration duration = const Duration(milliseconds: 200),
- bool value = false,
- ValueChanged<
bool> ? onChanged, - double height = 40,
- bool isEnabled = true,
Implementation
const EmergentSwitch({
this.style = const EmergentSwitchStyle(),
Key? key,
this.curve = Emergent.defaultCurve,
this.duration = const Duration(milliseconds: 200),
this.value = false,
this.onChanged,
this.height = 40,
this.isEnabled = true,
}) : super(key: key);