BKTClient class

Bucketeer Flutter SDK

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

addEvaluationUpdateListener(BKTEvaluationUpdateListener listener) Future<String>
boolVariation(String featureId, {required bool defaultValue}) Future<bool>
boolVariationDetails(String featureId, {required bool defaultValue}) Future<BKTEvaluationDetails<bool>>
clearEvaluationUpdateListeners() → void
currentUser() Future<BKTResult<BKTUser>>
destroy() Future<BKTResult<void>>
doubleVariation(String featureId, {required double defaultValue}) Future<double>
doubleVariationDetails(String featureId, {required double defaultValue}) Future<BKTEvaluationDetails<double>>
evaluationDetails(String featureId) Future<BKTEvaluation?>
fetchEvaluations({int? timeoutMillis}) Future<BKTResult<void>>
flush() Future<BKTResult<void>>
intVariation(String featureId, {required int defaultValue}) Future<int>
intVariationDetails(String featureId, {required int defaultValue}) Future<BKTEvaluationDetails<int>>
jsonVariation(String featureId, {required Map<String, dynamic> defaultValue}) Future<Map<String, dynamic>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
objectVariation(String featureId, {required BKTValue defaultValue}) Future<BKTValue>
objectVariationDetails(String featureId, {required BKTValue defaultValue}) Future<BKTEvaluationDetails<BKTValue>>
removeEvaluationUpdateListener(String key) → void
stringVariation(String featureId, {required String defaultValue}) Future<String>
stringVariationDetails(String featureId, {required String defaultValue}) Future<BKTEvaluationDetails<String>>
toString() String
A string representation of this object.
inherited
track(String goalId, {double? value}) Future<BKTResult<void>>
updateUserAttributes(Map<String, String> userAttributes) Future<BKTResult<void>>

Operators

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

Static Methods

initialize({required BKTConfig config, required BKTUser user, int? timeoutMillis}) Future<BKTResult<void>>

Constants

instance → const BKTClient