FontWeight class Null safety
The thickness of the glyphs used to draw the text
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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(
FontWeight? a, FontWeight? b, double t) → FontWeight? - Linearly interpolates between two font weights.
Constants
- bold → const FontWeight
-
A commonly used font weight that is heavier than normal.
w700
- normal → const FontWeight
-
The default font weight.
w400
-
values
→ const List<
FontWeight> -
A list of all the font weights.
<FontWeight>[w100, w200, w300, w400, w500, w600, w700, w800, w900]
- w100 → const FontWeight
-
Thin, the least thick
FontWeight._(0)
- w200 → const FontWeight
-
Extra-light
FontWeight._(1)
- w300 → const FontWeight
-
Light
FontWeight._(2)
- w400 → const FontWeight
-
Normal / regular / plain
FontWeight._(3)
- w500 → const FontWeight
-
Medium
FontWeight._(4)
- w600 → const FontWeight
-
Semi-bold
FontWeight._(5)
- w700 → const FontWeight
-
Bold
FontWeight._(6)
- w800 → const FontWeight
-
Extra-bold
FontWeight._(7)
- w900 → const FontWeight
-
Black, the most thick
FontWeight._(8)