StrokeWidth class Null safety

SVG stroke width enum and helper class. Make pattern and conversion easy.

Constructors

StrokeWidth(double value)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

getValue() double
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

none StrokeWidth
final
width1 StrokeWidth
final
width10 StrokeWidth
final
width2 StrokeWidth
final
width20 StrokeWidth
final
width5 StrokeWidth
final

Static Methods

custom(double value) StrokeWidth
toXml(StrokeWidth? strokeWidth, Unit? unit) String