decode method
*[<Null safety>](https://dart.dev/null-safety)*
Future<String> decode (EncodedContent encoded)
override
This is called to decode the content captured by encoded
.
Implementation
@override
Future<String> decode(xmtp.EncodedContent encoded) async {
var encoding = encoded.parameters['encoding'] ?? defaultEncoding;
if (!supportedEncodings.contains(encoding)) {
throw StateError("unsupported text encoding '$encoding'");
}
return utf8.decode(encoded.content);
}