InvergeDocs
FlutterAPI reference

Feature flags

Feature flags in the Flutter SDK.

import 'package:nexus_flutter/nexus.dart';

NexusFlags

class

Feature flags & remote config. Call load to evaluate all flags for the current user, then read them synchronously.

View source

all

property
Map<String, Object?> get all
View source

load()

method
Future<void> load({Map<String, Object?>? properties})

Evaluate every flag for the current person + properties and cache the result.

Parameters

Prop

Type

View source

isEnabled()

method
bool isEnabled(String key)

True when a boolean flag is on, or a multivariate flag has any variant.

Parameters

Prop

Type

Returns bool

View source

variant()

method
String? variant(String key)

The variant key for a multivariate flag, or null.

Parameters

Prop

Type

Returns String?

View source

payload()

method
Object? payload(String key)

The remote-config payload for a flag, if any.

Parameters

Prop

Type

Returns Object?

View source

On this page