withColor method
Creates foreground color attribute with color
value
If color is transparent, unset is returned
Implementation
@override
ParchmentAttribute<int> withColor(int color) {
if (color == _transparentColor) {
return unset;
}
return ParchmentAttribute<int>._(key, scope, color);
}