2022-04-08 21:16:10 +02:00
|
|
|
abstract class NotificationManager {
|
|
|
|
/// Show a notification and optionally return a unique identifier to dismiss
|
|
|
|
/// this notification later
|
|
|
|
Future<dynamic> notify(Notification notification);
|
2021-09-10 13:46:15 +02:00
|
|
|
|
2022-04-08 21:16:10 +02:00
|
|
|
/// Dismiss a notification
|
|
|
|
///
|
|
|
|
/// This could have no effect if not supported by the platform
|
|
|
|
Future<void> dismiss(dynamic id);
|
|
|
|
}
|
|
|
|
|
|
|
|
class Notification {}
|
|
|
|
|
|
|
|
class LogSaveSuccessfulNotification implements Notification {
|
|
|
|
const LogSaveSuccessfulNotification(this.result);
|
|
|
|
|
|
|
|
final dynamic result;
|
2021-09-10 13:46:15 +02:00
|
|
|
}
|