getLedgerDevices static method
Implementation
static Future<List<LedgerDevice>> getLedgerDevices() async {
final result = await executeAsync(
(port) => FlutterLedgerLib.instance.bindings.ll_get_ledger_devices(
port,
),
);
final string = cStringToDart(result);
final json = jsonDecode(string) as List<dynamic>;
return json
.map((e) => LedgerDevice.fromJson(e as Map<String, dynamic>))
.toList();
}