statusLabel property

String get statusLabel

Human-readable label for this status.

Use this instead of .name when you need a display string, as .name is Dart's built-in enum name getter.

Implementation

String get statusLabel {
  switch (this) {
    case ScannerStatus.uninitialized:
      return 'uninitialized';
    case ScannerStatus.ready:
      return 'ready';
    case ScannerStatus.scanning:
      return 'scanning';
    case ScannerStatus.error:
      return 'error';
    case ScannerStatus.disabled:
      return 'disabled';
  }
}