SatoriBaseClient class abstract

An interface for the Satori client.

Implementers

Constructors

SatoriBaseClient()
SatoriBaseClient.init({required String host, required String apiKey, required int port, required bool ssl})

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

authenticate({String? id, Map<String, String>? defaultProperties, Map<String, String>? customProperties}) Future<Session>
Authenticate against the server.
authenticateLogout({required Session session}) Future<void>
Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user.
deleteIdentity({required Session session}) Future<void>
Delete the caller's identity and associated data.
event({required Session session, required Event event}) Future<void>
Send an event for this session.
events({required Session session, required List<Event> events}) Future<void>
Send a batch of events for this session.
getAllExperiments({required Session session}) Future<ExperimentList>
Get all experiments data.
getExperiments({required Session session, required List<String> names}) Future<ExperimentList>
Get specific experiments data.
getFlag({required Session session, required String name, String? defaultValue}) Future<Flag>
Get a single flag for this identity.
getFlags({required Session session, required List<String> names}) Future<FlagList>
List all available flags for this identity.
getLiveEvents({required Session session, List<String>? names}) Future<LiveEventList>
List available live events.
identify({required Session session, required String id, required Map<String, String> defaultProperties, required Map<String, String> customProperties}) Future<Session>
Identify a session with a new ID.
listProperties({required Session session}) Future<Properties>
List properties associated with this identity.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sessionRefresh({required Session session}) Future<Session>
Refresh a user's session using a refresh token retrieved from a previous authentication request.
toString() String
A string representation of this object.
inherited
updateProperties({required Session session, required Map<String, String> defaultProperties, required Map<String, String> customProperties, bool? recompute}) Future<void>
Update properties associated with this identity.

Operators

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