CustomFont class

A custom font.

Inheritance

Constructors

CustomFont(String identifier, String fontName, String name, {String? fontUri})
Creates a new CustomFont.

Properties

fontName String
The actual font name or system font name, e.g. Chalkduster.
final
fontUri String?
The source of the font file. TTF and OTF fonts are allowed. This should either be the full path, a uri or if it is an asset the relative path as specified in your pubspec.yaml file. If null the fontName is assumed to be a system font.
final
hashCode int
The hash code for this object.
no setterinherited
identifier String
The identifier of the item.
finalinherited
name String?
The name of the item.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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