CanvasAppearance class abstract

Appearance shared by text and icon sources.

foreground controls whether/how the authored source itself is painted. CanvasFill.none() is valid: the source silhouette still exists and may be consumed by underlays.

Underlays are painted back-to-front before the foreground.

Annotations
  • @freezed

Constructors

CanvasAppearance({@CanvasFillConverter() @Default.new(CanvasFill.solid(0xFF111111)) CanvasFill foreground, @Default.new(<CanvasSourceUnderlay>[]) List<CanvasSourceUnderlay> underlays})
const
factory
CanvasAppearance.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $CanvasAppearanceCopyWith<CanvasAppearance>
Create a copy of CanvasAppearance with the given fields replaced by the non-null parameter values.
no setterinherited
foreground → CanvasFill
no setterinherited
hashCode → Color32
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
underlays → List<CanvasSourceUnderlay>
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this CanvasAppearance to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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