getPrinters method
Implementation
@override
Future<List<Printer>> getPrinters({required PrinterType printerType}) async {
switch (printerType) {
case PrinterType.usb:
return _usbRepository.getPrinters();
case PrinterType.bluethoot:
if (Platform.isWindows) {
throw UnimplementedError('Bluetooth printing is not supported on Windows');
}
return _bluetoothRepository.getPrinters();
case PrinterType.network:
return _networkRepository.getPrinters();
}
}