StreamFontWeight class

Font weight values for text.

Provides four standard font weights for text hierarchy.

Annotations

Constructors

StreamFontWeight({FontWeight regular = tokens.StreamTokensDimensions.typographyFontWeightRegular, FontWeight medium = tokens.StreamTokensDimensions.typographyFontWeightMedium, FontWeight semibold = tokens.StreamTokensDimensions.typographyFontWeightSemiBold, FontWeight bold = tokens.StreamTokensDimensions.typographyFontWeightBold})
Creates a StreamFontWeight with the given values.
const

Properties

bold → FontWeight
The bold font weight.
final
canMerge → bool
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
medium → FontWeight
The medium font weight.
final
regular → FontWeight
The regular font weight.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semibold → FontWeight
The semibold font weight.
final

Methods

copyWith({FontWeight? regular, FontWeight? medium, FontWeight? semibold, FontWeight? bold}) → StreamFontWeight
inherited
merge(StreamFontWeight? other) → StreamFontWeight
inherited
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.
inherited

Static Methods

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