decode method

  1. @override
Future<DecodedContent> decode(
  1. EncodedContent encoded
)
override

These use all registered codecs to decode and encode content.

This happens automatically when you listMessages or streamMessages and also when you sendMessage.

These method are exposed to help support offline storage of the otherwise unwieldy content. See note re "Offline Storage" atop DecodedMessage.

Implementation

@override
Future<DecodedContent> decode(xmtp.EncodedContent encoded) =>
    _codecs.decode(encoded);