showNotification method
Shows a standard notification
Implementation
Future<void> showNotification({
required NotificationModel model,
}) async {
if (!_isInitialized) {
throw StateError(
'PlatformNotificationService must be initialized before showing notifications');
}
if (isWeb) {
return _showWebNotification(model);
}
if (isMobile || Platform.isMacOS || Platform.isLinux) {
await _showMobileNotification(model);
}
if (Platform.isWindows) {
await _showWindowsNotification(model);
}
}