toTrimmedOrNull method

String? toTrimmedOrNull()

Converts the input to a string and trims it or returns null if the result is empty.

Implementation

String? toTrimmedOrNull() {
  return trimmedOrNull(this);
}