getReminders method
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);
}