getReminders method

  1. @override
Future<List<Reminder>?> getReminders([
  1. String? id
])
override

Implementation

@override
Future<List<Reminder>?> getReminders([String? id]) async {
  final reminders =
      await methodChannel.invokeMethod('getReminders', {'id': id});
  final result = jsonDecode(reminders)
      .map<Reminder>((reminder) => Reminder.fromJson(reminder))
      .toList();
  return (result);
}