valueOr function

String valueOr(
  1. String? value,
  2. String or
)

Implementation

String valueOr(String? value, String or) {
  return value == null || value.isEmpty ? or : value;
}