textPartiColor property
Color
textPartiColor
Implementation
Color get textPartiColor {
int _red = partiColor.red;
int _green = partiColor.green;
int _blue = partiColor.blue;
double multiplier = (_red + _green + _blue) / 3;
int _newRed = (_red > multiplier ? 0 : 255);
int _newGreen = (_green > multiplier ? 0 : 255);
int _newBlue = (_blue > multiplier ? 0 : 255);
return Color.fromARGB(255, _newRed, _newGreen, _newBlue);
}