updateScannersList method
Update/refresh scanners list
Returns a map with 'scanners' (list) and 'count' (int) This refreshes both available and active scanners
Implementation
@override
Future<Map<String, dynamic>> updateScannersList() async {
final result = await methodChannel.invokeMethod<Map<Object?, Object?>>(
'updateScannersList',
);
if (result == null) return {'scanners': [], 'count': 0};
return Map<String, dynamic>.from(result);
}