Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:async
  3. StreamConsumer<S> class
StreamConsumer
description

StreamConsumer<S> classabstractinterface

Abstract interface for a "sink" accepting multiple entire streams.

A consumer can accept a number of consecutive streams usingaddStream,and when no further data need to be added, theclose method tells theconsumer to complete its work and shut down.

TheStream.pipe accepts aStreamConsumer and will pass the streamto the consumer'saddStream method. When that completes, it willcallclose and then complete its own returned future.

Implementers

Properties

hashCodeint
The hash code for this object.
no setterinherited
runtimeTypeType
A representation of the runtime type of the object.
no setterinherited

Methods

addStream(Stream<S>stream)Future
Consumes the elements ofstream.
close()Future
Tells the consumer that no further streams will be added.
noSuchMethod(Invocationinvocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString()String
A string representation of this object.
inherited

Operators

operator ==(Objectother)bool
The equality operator.
inherited
  1. Dart
  2. dart:async
  3. StreamConsumer<S> class
dart:async library

[8]ページ先頭

©2009-2025 Movatter.jp