W3cubDocs

/Dart 2

LineSplitter class

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.

Inheritance

Constructors

LineSplitter()
const

Properties

hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

bind(Stream<String> stream) → Stream<String>
Transforms the provided stream. [...]
convert(String data) → List<String>
startChunkedConversion(Sink<String> sink) → StringConversionSink
cast<RS, RT>() → StreamTransformer<RS, RT>
inherited
Provides a StreamTrasformer<RS, RT> view of this stream transformer. [...]
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
inherited
Returns a string representation of this object.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

Static Methods

split(String lines, [ int start = 0, int end ]) → Iterable<String>
Split lines into individual lines. [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-convert/LineSplitter-class.html