FmeClient class
Shared implementation behind the public VWO and Wingify facades.
Holds the initialized instance state and the SDK operations. The two facades subclass this and only differ in their static entry points and the init options they accept.
Constructors
Properties
- accountId ↔ int?
-
getter/setter pair
- fmePlugin ↔ VwoFmeFlutterSdkPlatform?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdkKey ↔ String?
-
getter/setter pair
Methods
-
attach(
FmeInitOptions options) → Future< void> -
Initializes the native SDK for
optionsand registers this client. -
clearInstance(
) → Future< bool> - Clears this client instance.
-
getFlag(
{required String featureKey, required FmeUserContext context}) → Future< GetFlag?> - Gets the value of a feature flag.
-
invokeSetAlias(
{required FmeUserContext context, required String alias}) → Future< bool> -
Shared
setAliasimplementation for VWO and Wingify. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAttribute(
{required Map< String, dynamic> attributes, required FmeUserContext context}) → Future<bool> -
Sets user attributes. Returns
falseif the SDK is not initialized. -
toString(
) → String -
A string representation of this object.
inherited
-
trackEvent(
{required String eventName, required FmeUserContext context, Map< String, dynamic> ? eventProperties}) → Future<Map< String, bool> ?> - Tracks an event.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
Static Methods
-
instanceKey(
int accountId, String sdkKey) → String -
logMessage(
String message) → void - Prints a message in debug mode only.