getDataSources method
Fetches the list of available scanners from a data source.
Returns a Future<List<String>>
containing the names of available scanners.
Implementation
@override
Future<List<String>> getDataSources() async {
List? results =
await methodChannel.invokeMethod<List<dynamic>>('getDataSources');
List<String> dsNames = [];
if (results != null) {
for (var item in results) {
dsNames.add(item.toString());
}
}
return dsNames;
}