DSRemoteConfig class

Constructors

DSRemoteConfig({required Map<String, dynamic> defaults, VoidCallback? onInitialized, VoidCallback? onLoaded})

Properties

hashCode int
The hash code for this object.
no setterinherited
isFullyInitialized bool
no setter
isInitialized bool
no setter
postfix String
no setter
prefix String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBool(String key, {bool defVal = false}) bool
Gets the value for a given key as a bool. Returns defVal if the key does not exist.
getDuration(String key, {Duration defVal = const Duration(seconds: 0)}) Duration
Gets the value for a given key as a Duration. Returns defVal if the key does not exist.
getInt(String key, {int defVal = 0}) int
Gets the value for a given key as an int. Returns defVal if the key does not exist.
getString(String key, {String defVal = ''}) String
Gets the value for a given key as a String. Returns defVal if the key does not exist.
getUserXPercent() int
getUserXSessions() int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setPostfix(String value) → void
setPrefix(String value) → void
toString() String
A string representation of this object.
inherited
waitForFullInit({dynamic maxWait = const Duration(seconds: 5)}) Future<void>
waitForInit({dynamic maxWait = const Duration(seconds: 5)}) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

I DSRemoteConfig
no setter