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