PaletteEntry class

A named Paint entry, registered with a Palette via Palette.add.

paint is never reassigned; mutate its properties directly instead.

Constructors

PaletteEntry(String name, Paint paint, {Vector2? offset, int? priority, bool? enabled})
Creates a named paint entry, to be registered with Palette.add.

Properties

enabled ↔ bool
Whether this paint is drawn. Defaults to true.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
name → String?
This paint's key in its owning Palette, or null for the default paint.
final
offset → Vector2
Where this paint is drawn, relative to its node's origin. Defaults to the origin.
final
paint → Paint
The paint drawn for this entry.
final
priority ↔ int
This paint's order among its siblings. Defaults to 0.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
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

Operators

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