CanvasSourceUnderlay class sealed

Ordered paint that derives independently from the original source silhouette and is painted before the authored foreground.

Index 0 is backmost.

Every underlay derives from the original source silhouette. Underlays never consume the output of a preceding underlay.

Freezed owns the immutable value model. The persisted wire format is owned explicitly by _CanvasSourceUnderlayJsonConverter so the discriminator remains stable even while there is only one underlay variant.

Annotations
  • @freezed

Constructors

CanvasSourceUnderlay.shadow({required String id, @Default.new(true) bool enabled, @Vec2Converter() required Vec2 offset, @Default.new(0.0) double blurSigma, required Color32 color})
const
factory

Properties

blurSigma → double
no setterinherited
color → Color32
no setterinherited
copyWith → $CanvasSourceUnderlayCopyWith<CanvasSourceUnderlay>
Create a copy of CanvasSourceUnderlay with the given fields replaced by the non-null parameter values.
no setterinherited
enabled → bool
no setterinherited
hashCode → Color32
The hash code for this object.
no setterinherited
id → String
no setterinherited
offset → Vec2
no setterinherited
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