NativebrikRemoteConfig class

A remote config that can be fetched from nativebrik.

  • NativebrikBridge must be initialized before using this class.
  • Dispose the variant after using it not to leak resources.

reference: https://docs.nativebrik.com/reference/flutter/nativebrikremoteconfig

Usage:

final config = NativebrikRemoteConfig("ID OR CUSTOM ID");
final variant = await config.fetch();
final phase = variant.phase;
final value = await variant.get("KEY");
await variant.dispose();

Constructors

NativebrikRemoteConfig(String id)

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fetch() Future<NativebrikRemoteConfigVariant>
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