Change some "function" to "method" in IOSink docs

Closes #31722

R=lrn@google.com

Change-Id: Ice7ed1c1ffcc8468f8e61274fa3c4fa880cc04f6
CoreLibraryReviewExempt: Doc changes only.
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/310763
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
This commit is contained in:
Nate Bosch 2023-06-22 18:00:13 +00:00 committed by Commit Queue
parent 2b1c0f5692
commit 915c1ed9bc

View file

@ -34,7 +34,7 @@ abstract interface class IOSink implements StreamSink<List<int>>, StringSink {
/// The [encoding] does not apply to this method, and the [data] list is passed
/// directly to the target consumer as a stream event.
///
/// This function must not be called when a stream is currently being added
/// This method must not be called when a stream is currently being added
/// using [addStream].
///
/// This operation is non-blocking. See [flush] or [done] for how to get any
@ -78,7 +78,7 @@ abstract interface class IOSink implements StreamSink<List<int>>, StringSink {
/// Passes the error to the target consumer as an error event.
///
/// This function must not be called when a stream is currently being added
/// This method must not be called when a stream is currently being added
/// using [addStream].
///
/// This operation is non-blocking. See [flush] or [done] for how to get any
@ -93,8 +93,8 @@ abstract interface class IOSink implements StreamSink<List<int>>, StringSink {
/// If the stream contains an error, the `addStream` ends at the error,
/// and the returned future completes with that error.
///
/// This function must not be called when a stream is currently being added
/// using this function.
/// This method must not be called when a stream is currently being added
/// using this method.
Future addStream(Stream<List<int>> stream);
/// Returns a [Future] that completes once all buffered data is accepted by the