ConfigManager class
Constructors
- ConfigManager()
-
factory
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
-
addConfig(
String? key, dynamic value) → void -
添加配置项
key
必须唯一,定义在各模块中value
配置对象 -
getBool(
String key) → bool -
获取配置项
key
必须唯一,定义在各模块中 -
getConfig(
String? key) → dynamic -
获取配置项
key
必须唯一,定义在各模块中 -
getString(
String key) → String -
获取配置项
key
必须唯一,定义在各模块中 -
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
- instance → ConfigManager
-
no setter