checkedInputColor static method
Defines the default color used for inputs when checked, such as checkbox, radio button and toggle switch. It's based on the current style and the current state.
Implementation
static Color checkedInputColor(ThemeData style, Set<ButtonStates> states) {
AccentColor color = style.accentColor;
if (states.isDisabled)
return style.disabledColor;
else if (states.isPressing)
return color.dark;
else if (states.isHovering) return color.lighter;
return color;
}