LogDrop class

Main entry point for interacting with the LogDrop Flutter SDK. Provides logging, crash tracking

Constructors

LogDrop()
Returns the singleton instance of LogDrop.
factory

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

crashTracker LogDropCrashTracker
Crash tracker instance for monitoring and reporting app crashes.
final

Static Methods

logDebug({required String tag, required String message, LogFlow? logFlow}) → dynamic
Logs a debug message with optional flow tracking.
logError({required String tag, required String message, LogFlow? logFlow}) → dynamic
Logs an error message with optional flow tracking.
logInfo({required String tag, required String message, LogFlow? logFlow}) → dynamic
Logs an informational message with optional flow tracking.
logWarning({required String tag, required String message, LogFlow? logFlow}) → dynamic
Logs a warning message with optional flow tracking.
onNewFcmPushToken(String token) → dynamic
Sends a new Firebase Cloud Messaging (FCM) push token to LogDrop.
onNewHmsPushToken(String token) → dynamic
Sends a new Huawei Mobile Services (HMS) push token to LogDrop.
onRemoteMessageReceived(Map<String, String> data) → dynamic
Handles a remote push message received by the application.
sendLogs() → dynamic
Sends all collected logs to the LogDrop backend.
userUpdate(String userId) → dynamic
Updates the current user context for logging and tracking.