getCount static method

Future<int> getCount(
  1. NotificationsQuery query
)

Get the number of current user's notifications based on the provided query.

query Query to filter notifications.

Implementation

static Future<int> getCount(NotificationsQuery query) {
  return NativeBridge.async('Notifications.count', jsonEncode(query.toJSON()))
      .then((result) => jsonDecode(result)['result']);
}