BackgroundColorAttributeBuilder class

Builder for background color value. Color is interpreted from the lower 32 bits of an int.

The bits are interpreted as follows:

  • Bits 24-31 are the alpha value.
  • Bits 16-23 are the red value.
  • Bits 8-15 are the green value.
  • Bits 0-7 are the blue value. (see Color documentation for more details

There is no need to use this class directly, consider using ParchmentAttribute.backgroundColor instead.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
Unique key of this attribute.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope ParchmentAttributeScope
finalinherited
unset ParchmentAttribute<int>
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withColor(int color) ParchmentAttribute<int>
Creates foreground color attribute with color value
override
withValue(int? value) ParchmentAttribute<int>
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited