HueDecorator class
HueDecorator is a Decorator that shifts the hue of the component.
The hue value is in radians. Standard range is from -pi to pi, or 0 to 2*pi.
Performance Note: This decorator uses canvas.saveLayer() which has
significant overhead compared to direct Paint manipulation (like
HueEffect). Prefer HueEffect for high-density rendering.
Constructors
- HueDecorator({double hue = 0.0})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hue ↔ double
-
The hue shift in radians.
getter/setter pair
- isLastDecorator → bool
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addLast(
Decorator? decorator) → void -
Adds a new decorator onto the chain of decorators
inherited
-
apply(
void draw(Canvas), Canvas canvas) → void -
Applies visual effect while
drawing on thecanvas.override -
applyChain(
void draw(Canvas), Canvas canvas) → void -
Applies this and all subsequent decorators if any.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeLast(
) → void -
Removes the last decorator from the chain of decorators
inherited
-
replaceLast(
Decorator? decorator) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited