StrokeLayer class
A stroke around the glyph outline. It widens the mark without touching the metrics, which is the whole reason several passes stay registered.
Constructors
- StrokeLayer({double width = 1, SceneStrokeJoin join = SceneStrokeJoin.round, ScenePaint? paint, double blur = 0, double dx = 0, double dy = 0, double opacity = 1, SceneLayerBox box = SceneLayerBox.text, SceneBlendMode blend = SceneBlendMode.normal})
-
const
Properties
- blend → SceneBlendMode
-
How this pass lands on the passes beneath it and on what is behind the
text.
finalinherited
- blur → double
-
The glyph outline blurred, through a mask filter on this pass's own
paint. Not the pass composited and blurred: that is a layer save per
pass, and a different performance story.
finalinherited
- box → SceneLayerBox
-
What paint is measured against: the whole text, or each line.
finalinherited
- dx → double
-
finalinherited
- dy → double
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- join → SceneStrokeJoin
-
final
- opacity → double
-
finalinherited
- paint → ScenePaint?
-
Null paints the text's own colour — which is what lets one stack serve
several colours, and what a run's own colour reaches through.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double
-
final
Methods
-
copyWith(
{double? blur, double? dx, double? dy, double? opacity, SceneLayerBox? box, SceneBlendMode? blend, double? width, SceneStrokeJoin? join}) → StrokeLayer -
This pass with the fields given changed and the rest kept. Every edit
and every rescale goes through here, so a field added to a pass is
carried by all of them rather than dropped by whichever call site
respelled the constructor and forgot it.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
toWire(
) → Map< String, Object?> -
override
-
withPaint(
ScenePaint? paint) → StrokeLayer -
This pass painted with
paintinstead — null included, which is "the text's own colour" and the one value copyWith cannot say, because there a null means "not given".override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override