trim method

String? trim()

Returns the string without any leading and trailing whitespace.

Implementation

String? trim() {
  return value?.trim();
}