terminated static method
Create a transaction that transforms the incoming stream into events delimited by 'terminator'.
var c = Transaction.terminated(p.inputStream, Uint8List.fromList([13, 10]));
Implementation
static Transaction<Uint8List> terminated(
Stream<Uint8List> stream, Uint8List terminator,
{int maxLen = 1024, bool stripTerminator = true}) {
return Transaction<Uint8List>(
stream,
TerminatedTransformer.broadcast(
terminator: terminator,
maxLen: maxLen,
stripTerminator: stripTerminator));
}