getCount static method
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']);
}