SwitchView constructor

const SwitchView({
  1. Key? key,
  2. SwitchViewController? controller,
  3. OnViewActivator? onActivator,
  4. OnViewChangeListener? onChange,
  5. OnViewErrorListener? onError,
  6. OnViewHoverListener? onHover,
  7. OnViewValidListener? onValid,
  8. OnViewValidatorListener? onValidator,
  9. ViewClickEffect? clickEffect,
  10. OnViewClickListener? onClick,
  11. OnViewClickListener? onDoubleClick,
  12. OnViewClickListener? onLongClick,
  13. OnViewToggleListener? onToggleClick,
  14. OnViewNotifyListener<SwitchViewController>? onClickHandler,
  15. OnViewNotifyListener<SwitchViewController>? onDoubleClickHandler,
  16. OnViewNotifyListener<SwitchViewController>? onLongClickHandler,
  17. bool? absorbMode,
  18. Color? background,
  19. ValueState<Color>? backgroundState,
  20. BlendMode? backgroundBlendMode,
  21. Gradient? backgroundGradient,
  22. ValueState<Gradient>? backgroundGradientState,
  23. DecorationImage? backgroundImage,
  24. ValueState<DecorationImage>? backgroundImageState,
  25. Clip? clipBehavior,
  26. double? dimensionRatio,
  27. double? elevation,
  28. bool? enabled,
  29. bool? expandable,
  30. Color? foreground,
  31. BlendMode? foregroundBlendMode,
  32. Gradient? foregroundGradient,
  33. DecorationImage? foregroundImage,
  34. int? flex,
  35. Alignment? gravity,
  36. double? height,
  37. ValueState<double>? heightState,
  38. double? heightMax,
  39. double? heightMin,
  40. Color hoverColor = Colors.transparent,
  41. Axis? orientation,
  42. ViewPosition? position,
  43. ViewPositionType? positionType,
  44. Color pressedColor = Colors.transparent,
  45. Color rippleColor = Colors.transparent,
  46. bool? scrollable,
  47. ScrollController? scrollController,
  48. ViewScrollingType? scrollingType,
  49. ViewShape? shape,
  50. Matrix4? transform,
  51. Alignment? transformGravity,
  52. bool? visibility,
  53. double? width,
  54. ValueState<double>? widthState,
  55. double? widthMax,
  56. double? widthMin,
  57. int? animation,
  58. Curve? animationType,
  59. ImageFilter? backdropFilter,
  60. BlendMode? backdropMode,
  61. Color? borderColor,
  62. ValueState<Color>? borderColorState,
  63. double? borderSize,
  64. ValueState<double>? borderSizeState,
  65. double? borderHorizontal,
  66. ValueState<double>? borderHorizontalState,
  67. double? borderVertical,
  68. ValueState<double>? borderVerticalState,
  69. double? borderTop,
  70. ValueState<double>? borderTopState,
  71. double? borderBottom,
  72. ValueState<double>? borderBottomState,
  73. double? borderStart,
  74. ValueState<double>? borderStartState,
  75. double? borderEnd,
  76. ValueState<double>? borderEndState,
  77. double? borderStrokeAlign,
  78. double? borderRadius,
  79. ValueState<double>? borderRadiusState,
  80. double? borderRadiusBL,
  81. ValueState<double>? borderRadiusBLState,
  82. double? borderRadiusBR,
  83. ValueState<double>? borderRadiusBRState,
  84. double? borderRadiusTL,
  85. ValueState<double>? borderRadiusTLState,
  86. double? borderRadiusTR,
  87. ValueState<double>? borderRadiusTRState,
  88. bool indicatorVisible = false,
  89. double? margin,
  90. double? marginHorizontal,
  91. double? marginVertical,
  92. double? marginTop,
  93. double? marginBottom,
  94. double? marginStart,
  95. double? marginEnd,
  96. EdgeInsets? marginCustom,
  97. double? opacity,
  98. ValueState<double>? opacityState,
  99. bool opacityAlwaysIncludeSemantics = false,
  100. double? padding,
  101. double? paddingHorizontal,
  102. double? paddingVertical,
  103. double? paddingTop,
  104. double? paddingBottom,
  105. double? paddingStart,
  106. double? paddingEnd,
  107. EdgeInsets? paddingCustom,
  108. double? shadow,
  109. double? shadowBlurRadius,
  110. BlurStyle? shadowBlurStyle,
  111. Color? shadowColor,
  112. ViewShadowType? shadowType,
  113. double? shadowSpreadRadius,
  114. double? shadowHorizontal,
  115. double? shadowVertical,
  116. double? shadowStart,
  117. double? shadowEnd,
  118. double? shadowTop,
  119. double? shadowBottom,
  120. double size = 30,
  121. Color? activeThumbColor,
  122. Color? inactiveThumbColor,
  123. Color? activeThumbStrokeColor,
  124. Color? inactiveThumbStrokeColor,
  125. Color? activeTrackColor,
  126. Color? inactiveTrackColor,
  127. Color? activeTrackStrokeColor,
  128. Color? inactiveTrackStrokeColor,
  129. dynamic activeThumbIcon,
  130. dynamic inactiveThumbIcon,
  131. Color? activeThumbIconTint,
  132. Color? inactiveThumbIconTint,
  133. double? activeThumbSpacing,
  134. double? inactiveThumbSpacing,
  135. double? activeThumbStrokeSize,
  136. double? inactiveThumbStrokeSize,
  137. double? thumbIconSpacing,
  138. int thumbWalkingTime = 200,
  139. double? trackBorderRadius,
  140. double? trackStrokeSize,
  141. double trackRatio = 1.65,
  142. bool? value,
})

Implementation

const SwitchView({
  /// ROOT PROPERTIES
  super.key,
  super.controller,

  /// CALLBACK PROPERTIES
  super.onActivator,
  super.onChange,
  super.onError,
  super.onHover,
  super.onValid,
  super.onValidator,

  /// CLICK PROPERTIES
  super.clickEffect,
  super.onClick,
  super.onDoubleClick,
  super.onLongClick,
  super.onToggleClick,
  super.onClickHandler,
  super.onDoubleClickHandler,
  super.onLongClickHandler,

  ///BASE PROPERTIES
  super.absorbMode,
  super.background,
  super.backgroundState,
  super.backgroundBlendMode,
  super.backgroundGradient,
  super.backgroundGradientState,
  super.backgroundImage,
  super.backgroundImageState,
  super.clipBehavior,
  super.dimensionRatio,
  super.elevation,
  super.enabled,
  super.expandable,
  super.foreground,
  super.foregroundBlendMode,
  super.foregroundGradient,
  super.foregroundImage,
  super.flex,
  super.gravity,
  super.height,
  super.heightState,
  super.heightMax,
  super.heightMin,
  super.hoverColor,
  super.orientation,
  super.position,
  super.positionType,
  super.pressedColor,
  super.rippleColor,
  super.scrollable,
  super.scrollController,
  super.scrollingType,
  super.shape,
  super.transform,
  super.transformGravity,
  super.visibility,
  super.width,
  super.widthState,
  super.widthMax,
  super.widthMin,

  /// ANIMATION PROPERTIES
  super.animation,
  super.animationType,

  /// BACKDROP PROPERTIES
  super.backdropFilter,
  super.backdropMode,

  /// BORDER PROPERTIES
  super.borderColor,
  super.borderColorState,
  super.borderSize,
  super.borderSizeState,
  super.borderHorizontal,
  super.borderHorizontalState,
  super.borderVertical,
  super.borderVerticalState,
  super.borderTop,
  super.borderTopState,
  super.borderBottom,
  super.borderBottomState,
  super.borderStart,
  super.borderStartState,
  super.borderEnd,
  super.borderEndState,
  super.borderStrokeAlign,

  /// BORDER RADIUS PROPERTIES
  super.borderRadius,
  super.borderRadiusState,
  super.borderRadiusBL,
  super.borderRadiusBLState,
  super.borderRadiusBR,
  super.borderRadiusBRState,
  super.borderRadiusTL,
  super.borderRadiusTLState,
  super.borderRadiusTR,
  super.borderRadiusTRState,

  /// INDICATOR PROPERTIES
  super.indicatorVisible,

  /// MARGIN PROPERTIES
  super.margin,
  super.marginHorizontal,
  super.marginVertical,
  super.marginTop,
  super.marginBottom,
  super.marginStart,
  super.marginEnd,
  super.marginCustom,

  /// OPACITY PROPERTIES
  super.opacity,
  super.opacityState,
  super.opacityAlwaysIncludeSemantics,

  /// PADDING PROPERTIES
  super.padding,
  super.paddingHorizontal,
  super.paddingVertical,
  super.paddingTop,
  super.paddingBottom,
  super.paddingStart,
  super.paddingEnd,
  super.paddingCustom,

  /// SHADOW PROPERTIES
  super.shadow,
  super.shadowBlurRadius,
  super.shadowBlurStyle,
  super.shadowColor,
  super.shadowType,
  super.shadowSpreadRadius,
  super.shadowHorizontal,
  super.shadowVertical,
  super.shadowStart,
  super.shadowEnd,
  super.shadowTop,
  super.shadowBottom,

  /// CHILD PROPERTIES
  this.size = 30,
  this.activeThumbColor,
  this.inactiveThumbColor,
  this.activeThumbStrokeColor,
  this.inactiveThumbStrokeColor,
  this.activeTrackColor,
  this.inactiveTrackColor,
  this.activeTrackStrokeColor,
  this.inactiveTrackStrokeColor,
  this.activeThumbIcon,
  this.inactiveThumbIcon,
  this.activeThumbIconTint,
  this.inactiveThumbIconTint,
  this.activeThumbSpacing,
  this.inactiveThumbSpacing,
  this.activeThumbStrokeSize,
  this.inactiveThumbStrokeSize,
  this.thumbIconSpacing,
  this.thumbWalkingTime = 200,
  this.trackBorderRadius,
  this.trackStrokeSize,
  this.trackRatio = 1.65,
  bool? value,
}) : super(activated: value);