AndroidNotificationSettings constructor

const AndroidNotificationSettings({
  1. String notificationChannelName = 'Location tracking',
  2. String notificationTitle = 'Start Location Tracking',
  3. String notificationMsg = 'Track location in background',
  4. String notificationBigMsg = 'Background location is on to keep the app up-tp-date with your location. This is required for main features to work properly when the app is not running.',
  5. String notificationIcon = '',
  6. Color notificationIconColor = Colors.grey,
  7. VoidCallback? notificationTapCallback,
})

notificationTitle Title of the notification. Only applies for android. Default is 'Start Location Tracking'.

notificationMsg Message of notification. Only applies for android. Default is 'Track location in background'.

notificationBigMsg Message to be displayed in the expanded content area of the notification. Only applies for android. Default is 'Background location is on to keep the app up-tp-date with your location. This is required for main features to work properly when the app is not running.'.

notificationIcon Icon name for notification. Only applies for android. The icon should be in 'mipmap' Directory. Default is app icon. Icon must comply to android rules to be displayed (transparent background and black/white shape)

notificationIconColor Icon color for notification from notification drawer. Only applies for android. Default color is grey.

notificationTapCallback callback for notification tap

Implementation

const AndroidNotificationSettings(
    {this.notificationChannelName = 'Location tracking',
    this.notificationTitle = 'Start Location Tracking',
    this.notificationMsg = 'Track location in background',
    this.notificationBigMsg =
        'Background location is on to keep the app up-tp-date with your location. This is required for main features to work properly when the app is not running.',
    this.notificationIcon = '',
    this.notificationIconColor = Colors.grey,
    this.notificationTapCallback});