FSwitch constructor

const FSwitch({
  1. Key? key,
  2. required bool isActive,
  3. double? backgroundContainerHeight,
  4. double? backgroundContainerWidth,
  5. BorderRadius? backgroundContainerBorderRadius,
  6. bool enabled = true,
  7. FColorI? backgroundContainerColorActiveEnabled,
  8. FColorI? backgroundContainerBorderColorActiveEnabled,
  9. double? backgroundContainerBorderWidthActiveEnabled,
  10. FColorI? backgroundContainerColorInactiveEnabled,
  11. FColorI? backgroundContainerBorderColorInactiveEnabled,
  12. double? backgroundContainerBorderWidthInactiveEnabled,
  13. FColorI? backgroundContainerColorActiveDisabled,
  14. FColorI? backgroundContainerBorderColorActiveDisabled,
  15. double? backgroundContainerWidthActiveDisabled,
  16. FColorI? backgroundContainerColorInactiveDisabled,
  17. FColorI? backgroundContainerBorderColorInactiveDisabled,
  18. double? backgroundContainerBorderWidthInactiveDisabled,
  19. Duration? animationDuration,
  20. double? insideContainerHeight,
  21. double? insideContainerWidth,
  22. FColorI? insideContainerColorActiveEnabled,
  23. FColorI? insideContainerBorderColorActiveEnabled,
  24. double? insideContainerBorderWidthActiveEnabled,
  25. FColorI? insideContainerColorInactiveEnabled,
  26. FColorI? insideContainerBorderColorInactiveEnabled,
  27. double? insideContainerBorderWidthInactiveEnabled,
  28. FColorI? insideContainerColorActiveDisabled,
  29. FColorI? insideContainerBorderColorActiveDisabled,
  30. double? insideContainerWidthActiveDisabled,
  31. FColorI? insideContainerColorInactiveDisabled,
  32. FColorI? insideContainerBorderColorInactiveDisabled,
  33. double? insideContainerBorderWidthInactiveDisabled,
  34. BorderRadius? insideContainerBorderRadius,
  35. void onChanged(
    1. bool value
    )?,
  36. double? insideContainerOpacity,
})

Implementation

const FSwitch({
  Key? key,
  required this.isActive,
  this.backgroundContainerHeight,
  this.backgroundContainerWidth,
  this.backgroundContainerBorderRadius,
  this.enabled = true,
  this.backgroundContainerColorActiveEnabled,
  this.backgroundContainerBorderColorActiveEnabled,
  this.backgroundContainerBorderWidthActiveEnabled,
  this.backgroundContainerColorInactiveEnabled,
  this.backgroundContainerBorderColorInactiveEnabled,
  this.backgroundContainerBorderWidthInactiveEnabled,
  this.backgroundContainerColorActiveDisabled,
  this.backgroundContainerBorderColorActiveDisabled,
  this.backgroundContainerWidthActiveDisabled,
  this.backgroundContainerColorInactiveDisabled,
  this.backgroundContainerBorderColorInactiveDisabled,
  this.backgroundContainerBorderWidthInactiveDisabled,
  this.animationDuration,
  this.insideContainerHeight,
  this.insideContainerWidth,
  this.insideContainerColorActiveEnabled,
  this.insideContainerBorderColorActiveEnabled,
  this.insideContainerBorderWidthActiveEnabled,
  this.insideContainerColorInactiveEnabled,
  this.insideContainerBorderColorInactiveEnabled,
  this.insideContainerBorderWidthInactiveEnabled,
  this.insideContainerColorActiveDisabled,
  this.insideContainerBorderColorActiveDisabled,
  this.insideContainerWidthActiveDisabled,
  this.insideContainerColorInactiveDisabled,
  this.insideContainerBorderColorInactiveDisabled,
  this.insideContainerBorderWidthInactiveDisabled,
  this.insideContainerBorderRadius,
  this.onChanged,
  this.insideContainerOpacity,
}) : super(key: key);