MacosFontWeight class

The thickness of the glyphs used to draw the text.

Implements FontWeight in order to provide the following custom weight values that Apple use in some of their text styles:

Reference:

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
The encoded integer value of this font weight.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The thickness value of this font weight.
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.
inherited

Static Methods

lerp(MacosFontWeight? a, MacosFontWeight? b, double t) MacosFontWeight?
Linearly interpolates between two font weights.
override

Constants

bold → const MacosFontWeight
A commonly used font weight that is heavier than normal.
normal → const MacosFontWeight
The default font weight.
values → const List<MacosFontWeight>
A list of all the font weights.
w100 → const MacosFontWeight
Thin, the least thick
w200 → const MacosFontWeight
Extra-light
w300 → const MacosFontWeight
Light
w400 → const MacosFontWeight
Normal / regular / plain
w500 → const MacosFontWeight
Medium
w510 → const MacosFontWeight
An Apple-specific font weight.
w590 → const MacosFontWeight
An Apple-specific font weight.
w600 → const MacosFontWeight
Semi-bold
w700 → const MacosFontWeight
Bold
w800 → const MacosFontWeight
Extra-bold
w860 → const MacosFontWeight
An Apple-specific font weight.
w900 → const MacosFontWeight
Black, the most thick