getAsString method

String getAsString(
  1. dynamic key
)

Converts map element into a string or returns '' if conversion is not possible.

  • key a key of element to get. Returns string value of the element or '' if conversion is not supported.

See getAsStringWithDefault

Implementation

String getAsString(key) {
  return getAsStringWithDefault(key, '');
}