active property
Indicates if the switch is active.
Please use inactiveOpacity for changing the opacity in inactive state.
For controlling the AnimatedOpacity you can use inactiveOpacityCurve and inactiveOpacityDuration.
Implementation
final bool active;