orElse static method

String orElse(
  1. String? value,
  2. String elseValue
)

If value is null the elseValue is returned otherwise value is returned.

Implementation

static String orElse(String? value, String elseValue) {
  return value ?? elseValue;
}