getScheduledNotifications method

  1. @override
Future<List> getScheduledNotifications()
override

Get all scheduled notifications

Implementation

@override
Future<List<dynamic>> getScheduledNotifications() async {
  try {
    final result = await methodChannel.invokeMethod<List<dynamic>>('getScheduledNotifications');
    return result ?? [];
  } on PlatformException catch (e) {
    debugPrint('Error getting scheduled notifications: ${e.message}');
    return [];
  }
}