FontLoader class
A class that enables the dynamic loading of fonts at runtime.
The FontLoader class provides a builder pattern, where the caller builds up the assets that make up a font family, then calls load to load the entire font family into a running Flutter application.
Constructors
- FontLoader(String family)
- Creates a new FontLoader that will load font assets for the specified family.
Properties
Methods
-
addFont(
Future< ByteData> bytes) → void - Registers a font asset to be loaded by this font loader.
-
load(
) → Future< void> - Loads this font loader's font family and all of its associated assets into the Flutter engine, making the font available to the current application.
-
loadFont(
Uint8List list, String family) → Future< void> - Hook called to load a font asset into the engine.
-
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