PaintStyle class
The style of PrimitiveElement.
- Inheritance
-
- Object
- ElementStyle
- PaintStyle
Constructors
-
PaintStyle({Color? fillColor, Gradient? fillGradient, Shader? fillShader, Color? strokeColor, Gradient? strokeGradient, Shader? strokeShader, Rect? gradientBounds, BlendMode? blendMode, double? strokeWidth, StrokeCap? strokeCap, StrokeJoin? strokeJoin, double? strokeMiterLimit, double? elevation, Color? shadowColor, List<
double> ? dash, DashOffset? dashOffset}) - Creates a paint style.
Properties
- blendMode → BlendMode?
-
The blend mode of the shape.
final
-
dash
→ List<
double> ? -
The dash list of the shape's outlines.
final
- dashOffset → DashOffset?
-
The dash offset of the shape's outlines.
final
- elevation → double?
-
The elevation of the shape's shadow.
final
- fillColor → Color?
-
The color to fill the shape.
final
- fillGradient → Gradient?
-
The gradient to fill the shape.
final
- fillShader → Shader?
-
The shader to fill the shape.
final
- gradientBounds → Rect?
-
The bounds of fillGradient and strokeGradient.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → Color?
-
The color of the shape's shadow.
final
- strokeCap → StrokeCap?
-
The kind of finish to place on the end of the shape's outlines.
final
- strokeColor → Color?
-
The color for shape's outlines.
final
- strokeGradient → Gradient?
-
The gradient for shape's outlines.
final
- strokeJoin → StrokeJoin?
-
The kind of finish to place on the joins between segments of the shape's outlines.
final
- strokeMiterLimit → double?
-
The limit for miters to be drawn on segments of the shape's outlines.
final
- strokeShader → Shader?
-
The shader for shape's outlines.
final
- strokeWidth → double?
-
Width of the shape's outlines.
final
Methods
-
lerpFrom(
covariant PaintStyle from, double t) → PaintStyle -
Linearly interpolate between this style and
from
.override -
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.
override