appendNotEmpty method

  1. @useResult
String appendNotEmpty(
  1. String value
)

Returns this string with value appended, or an empty string if this string is empty. Audited: 2026-06-12 11:26 EDT

Implementation

@useResult
String appendNotEmpty(String value) => isEmpty ? '' : this + value;