hasValidConnectionData property

bool get hasValidConnectionData

Check if printer has valid connection data

Implementation

bool get hasValidConnectionData {
  switch (connectionType) {
    case ConnectionType.USB:
      return vendorId != null && productId != null;
    case ConnectionType.BLE:
      return address != null;
    case ConnectionType.NETWORK:
      return address != null;
    default:
      return false;
  }
}