asString method

String asString()

Decode value to string.

Implementation

String asString() {
  final value = _value;
  return value != null
      ? const Utf8Codec().decode(value)
      : defaultValueForString;
}