FlutterAPI reference
Feature flags
Feature flags in the Flutter SDK.
import 'package:nexus_flutter/nexus.dart';NexusFlags
classFeature flags & remote config. Call load to evaluate all flags for the
current user, then read them synchronously.
all
propertyMap<String, Object?> get allload()
methodFuture<void> load({Map<String, Object?>? properties})Evaluate every flag for the current person + properties and cache the result.
Parameters
Prop
Type
isEnabled()
methodbool isEnabled(String key)True when a boolean flag is on, or a multivariate flag has any variant.
Parameters
Prop
Type
Returns bool
variant()
methodString? variant(String key)The variant key for a multivariate flag, or null.
Parameters
Prop
Type
Returns String?
payload()
methodObject? payload(String key)The remote-config payload for a flag, if any.
Parameters
Prop
Type
Returns Object?
