notify method
Immediately shows the notification to the user.
Implementation
Future<void> notify(LocalNotification notification) async {
if ((Platform.isLinux || Platform.isWindows) && !_isInitialized) {
throw Exception(
'Not initialized, please call `localNotifier.setup` first to initialize',
);
}
_notifications[notification.identifier] = notification;
final Map<String, dynamic> arguments = notification.toJson();
arguments['appName'] = _appName;
await _channel.invokeMethod('notify', arguments);
}