EvntalyClient class

Main client for Evntaly SDK This is a singleton service - use EvntalyClient.instance to get the instance.

Constructors

EvntalyClient()
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
isInitialized → bool
Check if the SDK has been initialized.
no setter
isVerboseLoggingEnabled → bool
Check if verbose logging is enabled.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkLimit() → Future<bool>
Calls the Evntaly check-limit endpoint to verify usage limits. Returns a boolean indicating if the limit allows further requests.
disableTracking() → void
Disables the tracking feature, preventing track() requests from being sent.
enableTracking() → void
Enables the tracking feature, allowing track() requests if checkLimit() passes.
identifyUser(dynamic userData) → Future<void>
Identifies a user by sending a POST request to Evntaly.
init({required String developerSecret, required String projectToken, bool verbose = false}) → void
Initialize the SDK with the developer secret and project token. Can only be called once. Subsequent calls will be ignored.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setVerboseLogging(bool enabled) → void
Enable or disable verbose logging.
toString() → String
A string representation of this object.
inherited
track(dynamic eventData, {String? screen, String? environment}) → Future<void>
Tracks an event by sending a POST request to Evntaly.

Operators

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

Static Properties

instance → EvntalyClient
no setter