MethodChannelFlutterOptimizely class

Platform implementation based on a method channel to communicate with native SDKs.

Inheritance

Properties

hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used for communication to native SDKs.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAllEnabledFeatures() → Future<Set<String>>
Lists all enabled feature keys for this user.
override
getAllFeatureVariables(String featureKey) → Future<Map<String, dynamic>>
Retrieves all feature variables for a given featureKey.
override
init(String sdkKey, {int periodicDownloadInterval = 10 * 60}) → Future<void>
Initializes the Optimizely plugin asynchronously.
override
initSync(String sdkKey, String datafile, {int periodicDownloadInterval = 10 * 60}) → Future<void>
Initializes the Optimizely plugin synchronously.
override
isFeatureEnabled(String featureKey) → Future<bool>
Checks if the feature with the given featureKey is enabled.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setUser(String userId, Map<String, dynamic> attributes) → Future<void>
Sets the user for this session.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited