ezFitCheck function
Custom '==' for two TextStyles
Implementation
bool ezFitCheck(TextStyle? a, TextStyle? b) {
if (a == null && b == null) return true;
if ((a == null) != (b == null)) return false;
return a!.fontFamily == b!.fontFamily &&
a.fontSize == b.fontSize &&
a.fontWeight == b.fontWeight &&
a.fontStyle == b.fontStyle &&
a.decoration == b.decoration &&
// Allow one color to be null, standard check when both are present
(((a.color == null) != (b.color == null)) || a.color == b.color) &&
a.letterSpacing == b.letterSpacing &&
a.wordSpacing == b.wordSpacing &&
a.height == b.height;
}