TerminatedStringTransformer class

This transformer takes an incoming stream and splits it along the "terminator" marks and returns a String! Great for parsing incoming serial streams that end on \r\n.

Implemented types

Constructors

TerminatedStringTransformer({bool sync = false, bool? cancelOnError, Uint8List? terminator, int maxLen = 1024, dynamic stripTerminator = true})
Splits the incoming stream at the given terminator sequence and converts to input to a string.
TerminatedStringTransformer.broadcast({bool sync = false, bool? cancelOnError, Uint8List? terminator, int maxLen = 1024, dynamic stripTerminator = true})
Splits the incoming stream at the given terminator sequence and converts to input to a string.

Properties

cancelOnError bool?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
maxLen int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stripTerminator → dynamic
final
terminator Uint8List?
final

Methods

bind(Stream<Uint8List> stream) Stream<String>
Transforms the provided stream.
override
cast<RS, RT>() StreamTransformer<RS, RT>
Provides a StreamTransformer<RS, RT> view of this stream transformer.
override
dispose() → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onData(Uint8List data) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited