FontFamilyValue class
https://tr.designtokens.org/format/#font-family
Represents a font name or an array of font names (ordered from most to least preferred).
The $type property MUST be set to the string fontFamily. The value MUST either be a string value containing a single font name or an array of strings, each being a single font name.
Note: If an array is given, the first value is used.
EXAMPLE 18
Constructors
- FontFamilyValue(String value)
-
Creates a FontFamilyValue with the given
value
.
Properties
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
-
maybeParse(
dynamic value) → FontFamilyValue? -
Returns a FontFamilyValue if the
value
is a valid font family. Otherwise returns null.