trim method Null safety

String? trim()

Returns the string without any leading and trailing whitespace.

Implementation

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