NikuSwitch.cupertino constructor

NikuSwitch.cupertino({
  1. Key? key,
  2. NikuState<Color>? thumbColorState,
  3. NikuState<Color>? trackColorState,
  4. NikuState<Color>? overlayColorState,
  5. bool? value,
  6. ValueChanged<bool>? onChanged,
  7. Color? activeColor,
  8. Color? activeTrackColor,
  9. Color? inactiveThumbColor,
  10. Color? inactiveTrackColor,
  11. ImageProvider<Object>? activeThumbImage,
  12. ImageErrorListener? onActiveThumbImageError,
  13. ImageProvider<Object>? inactiveThumbImage,
  14. ImageErrorListener? onInactiveThumbImageError,
  15. MaterialTapTargetSize? materialTapTargetSize,
  16. DragStartBehavior? dragStartBehavior,
  17. MouseCursor? mouseCursor,
  18. Color? focusColor,
  19. Color? hoverColor,
  20. double? splashRadius,
  21. FocusNode? focusNode,
  22. bool? autofocus,
  23. Color? thumbColor,
  24. Color? trackColor,
  25. Color? overlayColor,
  26. Icon? thumbIcon,
})

Implementation

factory NikuSwitch.cupertino({
  Key? key,
  NikuState<Color>? thumbColorState,
  NikuState<Color>? trackColorState,
  NikuState<Color>? overlayColorState,
  bool? value,
  ValueChanged<bool>? onChanged,
  Color? activeColor,
  Color? activeTrackColor,
  Color? inactiveThumbColor,
  Color? inactiveTrackColor,
  ImageProvider? activeThumbImage,
  ImageErrorListener? onActiveThumbImageError,
  ImageProvider? inactiveThumbImage,
  ImageErrorListener? onInactiveThumbImageError,
  MaterialTapTargetSize? materialTapTargetSize,
  DragStartBehavior? dragStartBehavior,
  MouseCursor? mouseCursor,
  Color? focusColor,
  Color? hoverColor,
  double? splashRadius,
  FocusNode? focusNode,
  bool? autofocus,
  Color? thumbColor,
  Color? trackColor,
  Color? overlayColor,
  Icon? thumbIcon,
}) =>
    NikuSwitch(
      value,
      key: key,
      thumbColorState: thumbColorState,
      trackColorState: trackColorState,
      overlayColorState: overlayColorState,
      onChanged: onChanged,
      activeColor: activeColor,
      activeTrackColor: activeTrackColor,
      inactiveThumbColor: inactiveThumbColor,
      inactiveTrackColor: inactiveTrackColor,
      activeThumbImage: activeThumbImage,
      onActiveThumbImageError: onActiveThumbImageError,
      inactiveThumbImage: inactiveThumbImage,
      onInactiveThumbImageError: onInactiveThumbImageError,
      materialTapTargetSize: materialTapTargetSize,
      dragStartBehavior: dragStartBehavior,
      mouseCursor: mouseCursor,
      focusColor: focusColor,
      hoverColor: hoverColor,
      splashRadius: splashRadius,
      focusNode: focusNode,
      autofocus: autofocus,
      thumbColor: thumbColor,
      trackColor: trackColor,
      overlayColor: overlayColor,
      thumbIcon: thumbIcon,
      cupertino: true,
    );