getPrinters method
Implementation
@override
Future<List<Printer>> getPrinters({required PrinterType printerType}) async {
switch (printerType) {
case PrinterType.usb:
return _usbRepository.getPrinters();
case PrinterType.bluetooth:
return _bluetoothRepository.getPrinters();
case PrinterType.network:
return _networkRepository.getPrinters();
}
}