img property

String get img

Implementation

String get img {
  final isBc = readerType == ReaderDeviceType.bcDevice;

  return switch (status) {
    HubConnectionState.Connected => _asset("ready", isBc),
    HubConnectionState.Connecting || HubConnectionState.Reconnecting => _asset("init", isBc),
    _ => _asset("powerOff", isBc),
  };
}