withColor method

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

Creates foreground color attribute with color value

If color is black, unset is returned

Implementation

@override
ParchmentAttribute<int> withColor(int color) {
  if (color == _black) {
    return unset;
  }
  return ParchmentAttribute._(key, scope, color);
}