withColor method

  1. @override
ParchmentAttribute<int> withColor(
  1. int color
)
override

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);
}