ConfigService class

Constructors

ConfigService()

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

apiURL String?
api url
getter/setter pair
dontClearKeys List<String>
getter/setter pair
token String
getter/setter pair

Static Methods

checkValueExist(dynamic key) bool
check if data exist
getValueBool(dynamic key) bool
get data localy
getValueInt(dynamic key) int
get data localy
getValueMap(dynamic key) Map<String, dynamic>
get data localy
getValueString(dynamic key) String
get data localy
init() Future
initlize the config service you must call before calling any other function
resetConfig() Future<bool>
remove all local config values
setValueBool(dynamic key, bool v) Future<bool>
save data localy
setValueInt(dynamic key, int v) Future<bool>
save data localy
setValueMap(dynamic key, Map v) Future<bool>
save data localy
setValueString(dynamic key, String? v) Future<bool>
save data localy