StrokeStyle class

The style of a stroke.

Constructors

StrokeStyle({Color color = const Color(0xff000000), double width = 1, List<double>? dash})
Creates a stroke style

Properties

color Color
The stroke color.
getter/setter pair
dash List<double>?
The circular array of dash offsets and lengths.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
The stroke width.
getter/setter pair

Methods

dashPath(Path path) Path
Gets the dash line from a source path.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toPaint([Paint? paint]) Paint
Gets Paint object from this stroke style.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override