StringSplitterIo class
A utility class with methods for splitting strings from files.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
split(
File file, {required List< String> splitters, List<Object> ? delimiters, bool removeSplitters = true, bool trimParts = false, Encoding encoding = utf8}) → Future<List< String> > -
Reads
file
as a string and splits it into parts, slicing the string at each occurrence of any of thesplitters
.file
must not benull
,splitters
must not benull
or empty. -
splitSync(
File file, {required List< String> splitters, List<Object> ? delimiters, bool removeSplitters = true, bool trimParts = false, Encoding encoding = utf8}) → List<String> -
Synchronously reads
file
as a string and splits it into parts, slicing the string at each occurrence of any of thesplitters
.file
not benull
,splitters
must not benull
or empty. -
stream(
File file, {required List< String> splitters, List<Object> ? delimiters, bool removeSplitters = true, bool trimParts = false, Converter<List< ? decoder}) → Stream<int> , String>List< String> > -
For parsing large files, stream streams the contents of
file
and returns the split parts in chunks.