GoMailer class

Main Go Mailer SDK class for Flutter

This SDK provides cross-platform push notification functionality and customer engagement messaging for Flutter applications.

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

instance GoMailer?
Get the shared instance of Go Mailer
no setter
isInitialized bool
Get whether the SDK is initialized
no setter
pushNotificationStream Stream<Map<String, dynamic>>
Listen to push notification events
no setter

Static Methods

flushPendingEvents() Future<void>
Flush any pending queued events (currently relevant for Android reliability layer)
getDeviceToken() Future<String?>
Get the current device token
getSdkInfo() Future<Map<String, dynamic>>
Get SDK diagnostic info (version, baseUrl, email, deviceToken)
initialize({required String apiKey, GoMailerConfig? config}) Future<void>
Initialize the Go Mailer SDK
registerForPushNotifications({required String email}) Future<void>
Register for push notifications
setUser(GoMailerUser user) Future<void>
Set the current user
trackEvent({required String eventName, Map<String, dynamic>? properties}) Future<void>
Track an analytics event
trackNotificationClick({required String notificationId, required String title, required String body, String? email}) Future<void>
Track notification click event

Constants

version → const String
Get the current version of the SDK