findInvert method
Finds an invert color which results a black or white color regarding the color luminance.
Implementation
Color findInvert() {
final luminance = computeLuminance();
if (luminance > 0.55) {
return const Color(0xFF000000).withOpacity(0.7);
}
return const Color(0xFFFFFFFF);
}