FSwitch constructor
const
FSwitch({
- Key? key,
- required bool isActive,
- double? backgroundContainerHeight,
- double? backgroundContainerWidth,
- BorderRadius? backgroundContainerBorderRadius,
- bool enabled = true,
- FColorI? backgroundContainerColorActiveEnabled,
- FColorI? backgroundContainerBorderColorActiveEnabled,
- double? backgroundContainerBorderWidthActiveEnabled,
- FColorI? backgroundContainerColorInactiveEnabled,
- FColorI? backgroundContainerBorderColorInactiveEnabled,
- double? backgroundContainerBorderWidthInactiveEnabled,
- FColorI? backgroundContainerColorActiveDisabled,
- FColorI? backgroundContainerBorderColorActiveDisabled,
- double? backgroundContainerWidthActiveDisabled,
- FColorI? backgroundContainerColorInactiveDisabled,
- FColorI? backgroundContainerBorderColorInactiveDisabled,
- double? backgroundContainerBorderWidthInactiveDisabled,
- Duration? animationDuration,
- double? insideContainerHeight,
- double? insideContainerWidth,
- FColorI? insideContainerColorActiveEnabled,
- FColorI? insideContainerBorderColorActiveEnabled,
- double? insideContainerBorderWidthActiveEnabled,
- FColorI? insideContainerColorInactiveEnabled,
- FColorI? insideContainerBorderColorInactiveEnabled,
- double? insideContainerBorderWidthInactiveEnabled,
- FColorI? insideContainerColorActiveDisabled,
- FColorI? insideContainerBorderColorActiveDisabled,
- double? insideContainerWidthActiveDisabled,
- FColorI? insideContainerColorInactiveDisabled,
- FColorI? insideContainerBorderColorInactiveDisabled,
- double? insideContainerBorderWidthInactiveDisabled,
- BorderRadius? insideContainerBorderRadius,
- void onChanged(
- bool value
- 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);