displayLabel property

String get displayLabel

Implementation

String get displayLabel {
  final pieces = <String>[];
  if (label != null && label!.trim().isNotEmpty) {
    pieces.add(label!.trim());
  }
  final res = _resolutionLabel;
  if (res != null && !pieces.contains(res)) {
    pieces.add(res);
  }
  final br = _bitrateLabel;
  if (br != null && !pieces.contains(br)) {
    pieces.add(br);
  }
  if (pieces.isEmpty) {
    pieces.add(id);
  }
  return pieces.join(' • ');
}