operator + method

LocalizedString operator +(
  1. Object other
)

Implementation

LocalizedString operator +(Object other) {
  if (other is LocalizedString) {
    return ConcatLocalizedString(this, other);
  } else if (other is String) {
    return ConcatLocalizedString(this, LocalizedString.fromString(other));
  } else {
    throw UnsupportedError('Unknown type for $other');
  }
}