NeumorphicSwitch constructor

const NeumorphicSwitch({
  1. NeumorphicSwitchStyle style = const NeumorphicSwitchStyle(),
  2. Key? key,
  3. Curve curve = Neumorphic.DEFAULT_CURVE,
  4. Duration duration = const Duration(milliseconds: 200),
  5. bool value = false,
  6. ValueChanged<bool>? onChanged,
  7. double height = 40,
  8. 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);