unwrappedString property

String unwrappedString

Returns a String representation of an Object or '-' if it is null or an empty String

Implementation

String get unwrappedString {
  if (this is String?) {
    return (this as String?)?.isEmpty ?? true ? '-' : toString();
  } else {
    return this?.toString() ?? '-';
  }
}