getColorPressed static method
Implementation
static WidgetStateProperty<Color?> getColorPressed(Color color) {
return WidgetStateProperty.resolveWith<Color?>((states) {
return states.contains(WidgetState.pressed)
? color.withAlpha(Default.alphaPressed)
: color;
});
}