HapticToggle constructor

const HapticToggle({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool>? onChanged,
  4. Color? activeColor,
  5. Color inactiveColor = const Color(0xFF3A3A3C),
  6. Color thumbColor = Colors.white,
  7. double width = 56,
  8. double height = 32,
  9. Duration duration = const Duration(milliseconds: 220),
})

Implementation

const HapticToggle({
  super.key,
  required this.value,
  required this.onChanged,
  this.activeColor,
  this.inactiveColor = const Color(0xFF3A3A3C),
  this.thumbColor = Colors.white,
  this.width = 56,
  this.height = 32,
  this.duration = const Duration(milliseconds: 220),
});