DrawableStyle class
Styling information for vector drawing.
Contains Paint, Path, dashing, transform, and text styling information.
- Annotations
Constructors
-
DrawableStyle({DrawablePaint? stroke, CircularIntervalList<
double> ? dashArray, DashOffset? dashOffset, DrawablePaint? fill, DrawableTextStyle? textStyle, PathFillType? pathFillType, double? groupOpacity, List<Path> ? clipPath, DrawableStyleable? mask, BlendMode? blendMode}) -
Creates a new DrawableStyle.
const
Properties
- blendMode → BlendMode?
-
The blend mode to apply, if any.
final
-
clipPath
→ List<
Path> ? -
The clip to apply, if any.
final
-
dashArray
→ CircularIntervalList<
double> ? -
The dashing array to use for the stroke, if any.
final
- dashOffset → DashOffset?
-
The
DashOffset
to use for where to begin the dashArray.final - fill → DrawablePaint?
-
If not
null
and notidentical
with DrawablePaint.empty, will result in a fill for the rendered DrawableShape. Drawn before the stroke.final - groupOpacity → double?
-
Controls group level opacity. Will be BlendMode.dstIn blended with any
children.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mask → DrawableStyleable?
-
The mask to apply, if any.
final
- pathFillType → PathFillType?
-
The fill rule to use for this path.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stroke → DrawablePaint?
-
If not
null
and notidentical
with DrawablePaint.empty, will result in a stroke for the rendered DrawableShape. Drawn after the fill.final - textStyle → DrawableTextStyle?
-
The style to apply to text elements of this drawable or its chidlren.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
emptyDashArray
→ CircularIntervalList<
double> -
Used where 'dasharray' is 'none'
final
Static Methods
-
mergeAndBlend(
DrawableStyle? parent, {DrawablePaint? fill, DrawablePaint? stroke, CircularIntervalList< double> ? dashArray, DashOffset? dashOffset, DrawableTextStyle? textStyle, PathFillType? pathFillType, double? groupOpacity, List<Path> ? clipPath, DrawableStyleable? mask, BlendMode? blendMode}) → DrawableStyle -
Creates a new DrawableStyle if
parent
is not null, filling in any null properties on this with the properties from other (exceptgroupOpacity
, is not inherited).