isDarkColor property
bool
isDarkColor
Check this color dark or not true for dark | false for light
Implementation
bool get isDarkColor {
return this.computeLuminance() <= 0.5 ? true : false;
}
Check this color dark or not true for dark | false for light
bool get isDarkColor {
return this.computeLuminance() <= 0.5 ? true : false;
}