setStatus static method

Future setStatus(
  1. String newStatus,
  2. List<String> notificationIds
)

Set notification status.

newStatus New status. notificationIds List of notification ids.

Implementation

static Future setStatus(String newStatus, List<String> notificationIds) {
  Map<String, dynamic> methodBody = {
    'status': newStatus,
    'notificationIds': notificationIds
  };
  return NativeBridge.async(
      'Notifications.setStatus', jsonEncode(methodBody));
}