or method

String or(
  1. String defaultValue
)

Gets the same string if it is not null or empty. Otherwise it returns the specified default value.

It is returned if this string is null or empty.

Implementation

String or(String defaultValue) => orProvider(() => defaultValue);