ConsonaStroke class

Constructors

ConsonaStroke({ConsonaStrokePreset preset = ConsonaStrokePreset.standard, double? customWidth})
const
ConsonaStroke.bold()
const
ConsonaStroke.flat()
const
ConsonaStroke.standard()
const

Properties

customWidth → double?
final
hashCode → int
The hash code for this object.
no setterinherited
preset → ConsonaStrokePreset
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveWidth([BuildContext? context]) → double
Resolves the physical logical stroke width. Standard hairline calculates from devicePixelRatio with a 0.5 logical px floor.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

lerp(ConsonaStroke a, ConsonaStroke b, double t) → ConsonaStroke
Linearly interpolates between two ConsonaStroke instances.