A StreamTransformer that splits a String into individual lines.
A line is terminated by either a CR (U+000D), a LF (U+000A), a CR+LF sequence (DOS line ending), and a final non-empty line can be ended by the end of the string.
The returned lines do not contain the line terminators.
Static Methods
Constructors
- LineSplitter()
-
const
Properties
- hashCode → int
-
The hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
bind(
Stream<String> stream) → Stream -
Transform the incoming
stream
's events. -
convert(
String data) → List<String> -
Converts
input
and returns the result of the conversion. -
startChunkedConversion(
Sink<String> sink) → StringConversionSink -
Starts a chunked conversion.
-
fuse<TT>(
Converter<List<String>, TT> other) → Converter<String, TT> -
Fuses
this
withother
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited