getDecks method
Get a list of decks from the Anki background service that can be used for export.
Implementation
Future<List<String>> getDecks() async {
try {
Map<dynamic, dynamic> result =
await methodChannel.invokeMethod('getDecks');
List<String> decks = result.values.toList().cast<String>();
decks.sort((a, b) => a.compareTo(b));
return decks;
} catch (e) {
showAnkidroidApiMessage();
rethrow;
}
}