keyboardKeys method Null safety
Returs a Future<List<String>>
of all the available keys within your system
Implementation
static Future<List<String>> keyboardKeys() async {
final data = await Process.run('python3', [kPath, 'keys']);
final keys = jsonDecode(data.stdout.toString()) as List<dynamic>;
final mapped = keys.map((e) => e.toString()).toList();
mapped.removeWhere((element) => element.trim() == '');
return Future.value(mapped);
}