prefixNotEmpty method

String prefixNotEmpty(
  1. String? value
)

Prepends value only if this string is not empty.

Implementation

String prefixNotEmpty(String? value) {
  if (isEmpty || value == null || value.isEmpty) return this;
  return value + this;
}