updateScheduledNotification method

  1. @override
Future<bool> updateScheduledNotification(
  1. dynamic notification
)
override

Update a scheduled notification

Implementation

@override
Future<bool> updateScheduledNotification(dynamic notification) async {
  try {
    final Map<String, dynamic> notificationData = notification.toJson();
    final result = await methodChannel.invokeMethod<bool>('updateScheduledNotification', notificationData);
    return result ?? false;
  } on PlatformException catch (e) {
    debugPrint('Error updating scheduled notification: ${e.message}');
    return false;
  }
}