GlobalConfigs class
A singleton class to set and get global configs.
Use GlobalConfigs() to access the singleton.
Constructors
- GlobalConfigs()
-
Returns the singleton object
factory
Properties
Methods
-
clear(
) → void - Clear the current configs
-
get<
T> (String path, {T converter(dynamic)?}) → T? - Reads from the configs
-
loadFromMap(
Map< String, dynamic> map, {String? path}) → GlobalConfigs -
Load your GlobalConfigs from a
map
into the current configs -
loadJsonFromdir(
String dir, {String? path}) → Future< GlobalConfigs> -
Load your GlobalConfigs from a
JSON
file into the current configs -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set<
T> (String path, T value) → void - Sets new data to the configs
-
toString(
) → String -
A string representation of this object.
inherited
-
unset(
String path) → void - Removes data to the configs
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited