jsonNewlineDocument top-level property

StreamChannelTransformer<Object?, String> jsonNewlineDocument
final

A StreamChannelTransformer similar to the default jsonDocument transformer that is built in to stream_channel, but adds a newline at the end of the JSON document, per Electrum's RPC requirement.

Implementation

final StreamChannelTransformer<Object?, String> jsonNewlineDocument =
    const _JsonNewlineTransformer();