FlutterOptimizelyPlatform class abstract
A platform interface to communicate with Optimizely.
- Inheritance
-
- Object
- PlatformInterface
- FlutterOptimizelyPlatform
- Implementers
Constructors
- FlutterOptimizelyPlatform()
-
Initializes a new Optimizely platform using the given plugin
_token
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
-
getAllFeatureVariables(
String featureKey) → Future< Map< String, dynamic> > -
Retrieves all feature variables for a given
featureKey
. -
init(
String sdkKey, {int periodicDownloadInterval = 10 * 60}) → Future< void> - Initializes the Optimizely plugin asynchronously.
-
initSync(
String sdkKey, String datafile, {int periodicDownloadInterval = 10 * 60}) → Future< void> - Initializes the Optimizely plugin synchronously.
-
isFeatureEnabled(
String featureKey) → Future< bool> -
Checks if the feature with the given
featureKey
is enabled. -
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.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ FlutterOptimizelyPlatform
-
Returns the platform used to communicate with Optimizely.
getter/setter pair