send static method
Send notification to any GetSocial user.
content
Notification content to send.
target
Notification recipients.
Implementation
static Future send(
NotificationContent content, SendNotificationTarget target) {
Map<String, dynamic> sendNotificationBody = {
'target': target.toJSON(),
'content': content.toJSON()
};
return NativeBridge.async(
'Notifications.send', jsonEncode(sendNotificationBody));
}