mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
18 lines
503 B
Dart
18 lines
503 B
Dart
abstract class NotificationManager {
|
|
/// Show a notification and optionally return a unique identifier to dismiss
|
|
/// this notification later
|
|
Future<dynamic> notify(Notification notification);
|
|
|
|
/// 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;
|
|
}
|