string method

String string(
  1. K key
)

Returns the string representation of the value associated with key.

If the key does not exist or the value is null, returns an empty string.

Implementation

String string(K key) {
  return this[key]?.toString() ?? '';
}