A Converter 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
-
split(
String lines, [int start = 0, int end]) → Iterable<String> -
Split
lines
into individual lines. /// /// Ifstart
andend
are provided, only split the contents of ///lines.substring(start, end)
. Thestart
andend
values must /// specify a valid sub-range oflines
/// (0 <= start <= end <= lines.length
).
Properties
- hashCode → int
-
Get a hash code for this object.…
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Constructors
- LineSplitter()
-
const
Operators
-
operator ==(
other) → bool -
The equality operator.…
inherited
Methods
-
bind(
stream) → -
Transform the incoming
stream
's events.…inherited -
convert(
String data) → List<String> -
Converts
input
and returns the result of the conversion. -
fuse(
Converter<List<String>, dynamic> other) → Converter<String, dynamic> -
Fuses
this
withother
.…inherited -
noSuchMethod(
Invocation invocation) → dynamic -
noSuchMethod is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed to noSuchMethod in an Invocation. If noSuchMethod returns a value, that value becomes the result of the original invocation.…
inherited -
startChunkedConversion(
Sink<String> sink) → StringConversionSink -
Starts a chunked conversion.
-
toString(
) → String -
Returns a string representation of this object.
inherited