StringSplitterIoExtension extension
- on
Methods
-
split(
{required List< String> splitters, List<Object> ? delimiters, bool removeSplitters = true, bool trimParts = false, Encoding encoding = utf8}) → Future<List< String> > -
Available on File, provided by the StringSplitterIoExtension extension
Readsfile
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. -
splitStream(
{required List< String> splitters, List<Object> ? delimiters, bool removeSplitters = true, bool trimParts = false, Converter<List< ? decoder}) → Stream<int> , String>List< String> > -
Available on File, provided by the StringSplitterIoExtension extension
For parsing large files,stream
streams the contents offile
and returns the split parts in chunks. -
splitSync(
{required List< String> splitters, List<Object> ? delimiters, bool removeSplitters = true, bool trimParts = false, Encoding encoding = utf8}) → List<String> -
Available on File, provided by the StringSplitterIoExtension extension
Synchronously readsfile
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.