AppFitEvent class Tracking

An event that is tracked by AppFit.

final event = AppFitEvent(name: 'event');

Constructors

AppFitEvent.new({String? id, required String name, Map<String, dynamic>? properties, DateTime? occurredAt})
Creates a new instance of AppFitEvent.
AppFitEvent.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
The unique identifier for the event. This is used as a way to identify the event both in the SDK and in the AppFit dashboard.
getter/setter pair
name String
The name of the event.
final
occurredAt DateTime
The time the event occurred.
getter/setter pair
properties Map<String, dynamic>?
The properties of the event.
final
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
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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