RemoteConfig class
Remote config values and feature flags for the current user, as of fetchedAt: the last ones fetched, also offline (kept on the device). Each getter takes the value to use when the key is missing or of another type, so the app works before the first fetch.
Constructors
Properties
- countsVisits → bool
-
The app counts opens and active installs without consent and without an id (see
BeeAppie.anonymousCountingEnabled): the app's privacy screen can then offer the switch to opt out.
final
- fetchedAt → DateTime?
-
When the values were fetched; null before the first fetch.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isUpToDate → bool
-
True when the values were fetched since the app started and the last fetch reached BeeAppie. False when they are the
ones kept on the device (the app started offline, or the last fetch failed), as of fetchedAt.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → AppStatus
-
Whether this version must or can update, and maintenance.
final
-
values
→ Map<
String, Object?> -
Every parameter's value, decoded from JSON (bool, num, String, List, Map or null).
final
Methods
-
getBool(
String key, {bool fallback = false}) → bool -
getDouble(
String key, {double fallback = 0}) → double -
getInt(
String key, {int fallback = 0}) → int -
getJson(
String key) → Object? - Any value as decoded JSON (e.g. a Map for an object); null when missing.
-
getString(
String key, {String? fallback}) → String? -
isEnabled(
String key) → bool - A feature flag: false unless the parameter is true for this user.
-
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