or method

String or(
  1. String other
)

Returns the string itself if not null otherwise the other string.

Implementation

String or(String other) {
  return this ?? other;
}