EmergentSwitch constructor

const EmergentSwitch({
  1. EmergentSwitchStyle style = const EmergentSwitchStyle(),
  2. Key? key,
  3. Curve curve = Emergent.defaultCurve,
  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 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);