appendNotEmpty method

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

Returns this string with value appended, or an empty string if this string is empty.

Implementation

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