Evntaly class

Main Evntaly SDK API

Provides a simple, clean API for tracking events and identifying users.

Example:

// Initialize
Evntaly.init(
  developerSecret: 'your-secret',
  projectToken: 'your-token',
);

// Track event
await Evntaly.track(
  EvntalyEvent(
    title: 'Button Clicked',
    user: EvntalyUser(id: 'user_123'),
  ),
);

// Identify user
await Evntaly.identifyUser(
  EvntalyUser(
    id: 'user_123',
    email: 'user@example.com',
  ),
);

Constructors

Evntaly()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

isInitialized bool
Check if the SDK has been initialized
no setter
isVerboseLoggingEnabled bool
Check if verbose logging is enabled
no setter

Static Methods

checkLimit() Future<bool>
Check API usage limits
disableTracking() → void
Disable event tracking
enableTracking() → void
Enable event tracking
identifyUser(dynamic userData) Future<void>
Identify a user
init({required String developerSecret, required String projectToken, bool verbose = false}) → void
Initialize the Evntaly SDK
setVerboseLogging(bool enabled) → void
Enable or disable verbose logging
track(dynamic eventData, {String? screen, String? environment}) Future<void>
Track an event