GlobalFontUtil class

Flutter字体工具类

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Properties

fontFamily String?
当前选择的全局字体,null 表示系统字体
no setter

Static Methods

initFont(FontModel fontModel) Future<void>
初始化全局默认字体
loadFont([FontModel? fontModel]) Future<bool>
动态加载全局字体,如果加载成功则返回true