toUpperCase method Null safety

String? toUpperCase()

Converts all characters in this string to upper case. If the string is already in all upper case, this method returns this.

Implementation

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