jsonNewlineDocument top-level property
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();