FontVariation class Null safety

An axis tag and value that can be used to customize variable fonts.

Some fonts are variable fonts that can generate a range of different font faces by altering the values of the font's design axes.

See https://docs.microsoft.com/en-us/typography/opentype/spec/otvaroverview

Example: TextStyle(fontVariations: <FontVariation>[FontVariation('wght', 800.0)])

Constructors

FontVariation(String axis, double value)
Creates a FontVariation object, which can be added to a TextStyle to change the variable attributes of a font.
const

Properties

axis String
The tag that identifies the design axis. Must consist of 4 ASCII characters.
final
hashCode int
The hash code for this object.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
value double
The value assigned to this design axis.
final

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.
override