asString method

String asString(
  1. String key
)

Implementation

String asString(String key) {
  final value = this[key];
  if (value == null) {
    return '';
  }
  if (value is String) {
    return value;
  }
  return value.toString();
}