DynamicFont class
Constructors
- DynamicFont.asset({required String fontFamily, required String key})
-
Use the font from AssetBundle,
key
is the same as inrootBundle.load
- DynamicFont.file({required String fontFamily, required String filepath})
-
Use the font from
filepath
- DynamicFont.url({required String fontFamily, required String url, bool? overwrite})
- Download the font, save to the device, then use it when needed
Properties
- fontFamily → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- overwrite ↔ bool?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → String
-
final
Methods
-
load(
) → Future< bool> -
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