DocumentFileEventsExt extension DocumentFile

Contains all supported methods which use Events channel (Streams) for DocumentFile class.

on

Methods

listDocumentsStream({List<String> mimeTypes = const [], List<String> extensions = const [], String? nameContains}) Stream<DocumentFile>

Available on DocumentFile, provided by the DocumentFileEventsExt extension

List the documents in the directory.
readAsBytes({int? bufferSize, int start = 0}) Stream<Uint8List>

Available on DocumentFile, provided by the DocumentFileEventsExt extension

Read the document content as bytes stream.
readAsString({int? bufferSize, int start = 0, String charset = 'UTF-8'}) Stream<String>

Available on DocumentFile, provided by the DocumentFileEventsExt extension

Read the document content as string stream.