showNotificationWithActions method

Future<int> showNotificationWithActions({
  1. required String title,
  2. required String message,
  3. required List<Map<String, String>> actions,
  4. String? channelId,
  5. int? priority,
  6. bool? autoCancel,
  7. String? targetScreen,
  8. Map<String, dynamic>? extraData,
})

Show a notification with custom actions.

Each action is a map with 'title' and 'route' keys. Returns the notification ID.

Implementation

Future<int> showNotificationWithActions({
  required String title,
  required String message,
  required List<Map<String, String>> actions,
  String? channelId,
  int? priority,
  bool? autoCancel,
  String? targetScreen,
  Map<String, dynamic>? extraData,
}) {
  throw UnimplementedError(
    'showNotificationWithActions() has not been implemented.',
  );
}