onColor property
onColor is color when widget switched on, default value is: Colors.white. offColor is color when widget switched off, default value is: Colors.black.
Implementation
final Color onColor, offColor;
onColor is color when widget switched on, default value is: Colors.white. offColor is color when widget switched off, default value is: Colors.black.
final Color onColor, offColor;