ifEmpty method

String ifEmpty(
  1. String other
)

Implementation

String ifEmpty(String other) {
  return isNotEmpty ? this! : other;
}