[doc,io]: Document how errors with File.openRead are exposed

Bug:https://github.com/dart-lang/sdk/issues/53904
Change-Id: Ib457ceb62f6745753e047b5d8160bf6d50fa12cb
CoreLibraryReviewExempt: documentation-only change
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/346586
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Brian Quinlan <bquinlan@google.com>
This commit is contained in:
Brian Quinlan 2024-01-17 18:43:50 +00:00 committed by Commit Queue
parent 5a6ed7a8db
commit b325bc6a43

View file

@ -496,6 +496,9 @@ abstract interface class File implements FileSystemEntity {
/// is closed before signaling "done". If there are no writers attached
/// to the pipe when it is opened, then [Stream.listen] will wait until
/// a writer opens the pipe.
///
/// Any errors opening or reading the file will appear as error events in
/// the returned [Stream].
Stream<List<int>> openRead([int? start, int? end]);
/// Creates a new independent [IOSink] for the file.