prefixNotEmpty method
Returns this string with value prepended, or this string unchanged if
empty.
Audited: 2026-06-12 11:26 EDT
Implementation
@useResult
String prefixNotEmpty(String? value) {
if (isEmpty || value == null || value.isEmpty) {
return this;
}
return value + this;
}