AndroidNotificationSettings class

Texts and appearance of the Android foreground service notification.

Android requires this notification while tracking runs. Pass texts in your app's language; the defaults are English.

Constructors

AndroidNotificationSettings({String notificationChannelName = 'Location tracking', String notificationTitle = 'Start Location Tracking', String notificationMsg = 'Track location in background', String notificationBigMsg = 'Background location is on to keep the app up-to-date with your location. This is required for main features to work properly when the app is not running.', String notificationIcon = '', Color notificationIconColor = Colors.grey, VoidCallback? notificationTapCallback})
Creates notification settings with English default texts.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
notificationBigMsg → String
Text of the expanded notification.
final
notificationChannelName → String
Name of the notification channel shown in the system settings.
final
notificationIcon → String
Name of a mipmap or drawable resource used as the small icon; empty uses the app icon. Android shows only the alpha channel, so use a transparent, single-color icon.
final
notificationIconColor → Color
Accent color of the notification icon.
final
notificationMsg → String
Text of the collapsed notification.
final
notificationTapCallback → VoidCallback?
Called in the background isolate when the user taps the notification. Must be a top-level or static function.
final
notificationTitle → String
Title of the notification.
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
toString() → String
A string representation of this object.
inherited

Operators

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