displayLabel property

String get displayLabel

Returns the display label for this email

Implementation

String get displayLabel {
  if (label == EmailLabel.custom && customLabel.isNotEmpty) {
    return customLabel;
  }
  return _labelToString(label);
}