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

Reads file as a string and splits it into parts, slicing the string at each occurrence of any of the splitters. file must not be null, splitters must not be null or empty.
splitStream({required List<String> splitters, List<Object>? delimiters, bool removeSplitters = true, bool trimParts = false, Converter<List<int>, String>? decoder}) Stream<List<String>>

Available on File, provided by the StringSplitterIoExtension extension

For parsing large files, stream streams the contents of file 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 reads file as a string and splits it into parts, slicing the string at each occurrence of any of the splitters. file not be null, splitters must not be null or empty.