Stroke class

An immutable collection of stroking properties for a Paint.

See also Paint.stroke.

Annotations
  • @immutable

Constructors

Stroke({Color? color, Gradient? shader, StrokeCap? cap, StrokeJoin? join, double? miterLimit, double? width})
Creates a new collection of stroking properties.
const

Properties

cap StrokeCap?
The cap style to use for strokes.
final
color Color
The color to use for this stroke.
final
hashCode int
The hash code for this object.
no setteroverride
join StrokeJoin?
The join style to use for strokes.
final
miterLimit double?
The limit where stroke joins drawn with StrokeJoin.miter switch to being drawn as StrokeJoin.bevel.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shader Gradient?
The Gradient to use when stroking.
final
width double?
The width of the stroke, if style is PaintingStyle.stroke.
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.
override