import 'package:flutter/services.dart'; class Notification { static Future notifyDownloadSuccessful(List fileUris, List mimeTypes, int? notificationId) => _channel.invokeMethod("notifyDownloadSuccessful", { "fileUris": fileUris, "mimeTypes": mimeTypes, "notificationId": notificationId, }); static Future notifyDownloadProgress(int progress, int max, String? currentItemTitle, int? notificationId) => _channel.invokeMethod("notifyDownloadProgress", { "progress": progress, "max": max, "currentItemTitle": currentItemTitle, "notificationId": notificationId, }); static Future notifyLogSaveSuccessful(String fileUri) => _channel.invokeMethod("notifyLogSaveSuccessful", { "fileUri": fileUri, }); static Future dismiss(int notificationId) => _channel.invokeMethod("dismiss", { "notificationId": notificationId, }); static const _channel = MethodChannel("com.nkming.nc_photos/notification"); }