ApiClient class

The API client for AppFit.

Constructors

ApiClient({String? baseUrl, required String apiKey, Dio? dio})
Creates a new instance of ApiClient.

Properties

apiKey String
The API key for the AppFit project.
final
baseUrl String
The base URL for the API Request.
final
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
track(RawMetricEvent event) Future<bool>
Tracks an event.
trackAll(List<RawMetricEvent> events) Future<bool>
Tracks events in a batch.

Operators

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