WordedToggle constructor

const WordedToggle({
  1. Key? key,
  2. ValueNotifier<bool>? controller,
  3. Color borderColor = const Color(0xFFE0E0E0),
  4. Color activeColor = const Color(0xFF4CAF50),
  5. Color inactiveColor = const Color(0xFF9E9E9E),
  6. Widget? activeChild,
  7. Widget? inactiveChild,
  8. ImageProvider<Object>? activeImage,
  9. ImageProvider<Object>? inactiveImage,
  10. Color activeThumbColor = const Color(0xFFFAFAFA),
  11. Color inactiveThumbColor = const Color(0xFFFAFAFA),
  12. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(15)),
  13. double width = 50.0,
  14. double height = 30.0,
  15. bool enabled = true,
  16. double disabledOpacity = 0.5,
  17. Widget? thumb,
  18. bool initialValue = false,
  19. ValueChanged? onChanged,
})

Implementation

const WordedToggle({
  super.key,
  this.controller,
  this.borderColor = const Color(0xFFE0E0E0),
  this.activeColor = const Color(0xFF4CAF50),
  this.inactiveColor = const Color(0xFF9E9E9E),
  this.activeChild,
  this.inactiveChild,
  this.activeImage,
  this.inactiveImage,
  this.activeThumbColor = const Color(0xFFFAFAFA),
  this.inactiveThumbColor = const Color(0xFFFAFAFA),
  this.borderRadius = const BorderRadius.all(Radius.circular(15)),
  this.width = 50.0,
  this.height = 30.0,
  this.enabled = true,
  this.disabledOpacity = 0.5,
  this.thumb,
  this.initialValue = false,
  this.onChanged,
});