FirebaseRemoteConfigWeb class
Web implementation of FirebaseRemoteConfigPlatform
.
- Inheritance
-
- Object
- PlatformInterface
- FirebaseRemoteConfigWeb
Constructors
- FirebaseRemoteConfigWeb({FirebaseApp? app})
- The entry point for the FirebaseRemoteConfigWeb class.
Properties
- app → FirebaseApp
-
Returns the
FirebaseApp
for the current instance.latefinalinherited - appInstance → FirebaseApp?
-
The
FirebaseApp
this instance was initialized with.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- lastFetchStatus → RemoteConfigFetchStatus
-
Returns the status of the last fetch attempt.
no setter
- lastFetchTime → DateTime
-
Returns the DateTime of the last successful fetch.
no setter
-
onConfigUpdated
→ Stream<
RemoteConfigUpdate> -
Get a Stream of
RemoteConfigUpdate
s.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settings → RemoteConfigSettings
-
Returns the
RemoteConfigSettings
of the current instance.no setter
Methods
-
activate(
) → Future< bool> - Makes the last fetched config available to getters.
-
delegateFor(
{FirebaseApp? app}) → FirebaseRemoteConfigPlatform -
Enables delegates to create new instances of themselves if a none
default
FirebaseApp
instance is required by the user. -
ensureInitialized(
) → Future< void> - Ensures the last activated config are available to getters.
-
fetch(
) → Future< void> - Fetches and caches configuration from the Remote Config service.
-
fetchAndActivate(
) → Future< bool> - Performs a fetch and activate operation, as a convenience.
-
getAll(
) → Map< String, RemoteConfigValue> - Returns a Map of all Remote Config parameters.
-
getBool(
String key) → bool - Gets the value for a given key as a bool.
-
getDouble(
String key) → double - Gets the value for a given key as a double.
-
getInt(
String key) → int - Gets the value for a given key as an int.
-
getString(
String key) → String - Gets the value for a given key as a String.
-
getValue(
String key) → RemoteConfigValue -
Gets the
RemoteConfigValue
for a given key. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setConfigSettings(
RemoteConfigSettings remoteConfigSettings) → Future< void> -
Sets the
RemoteConfigSettings
for the current instance. -
setDefaults(
Map< String, dynamic> defaultParameters) → Future<void> - Sets the default parameter values for the current instance.
-
setInitialValues(
{required Map remoteConfigValues}) → FirebaseRemoteConfigPlatform - Sets any initial values on the instance.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → FirebaseRemoteConfigWeb
-
Returns an instance of FirebaseRemoteConfigWeb.
no setter
Static Methods
-
registerWith(
Registrar registrar) → void -
Create the default instance of the
FirebaseRemoteConfigPlatform
as a FirebaseRemoteConfigWeb