Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:async
  3. EventSink<T> class
EventSink
description

EventSink<T> classabstractinterface

ASink that supports adding errors.

This makes it suitable for capturing the results of asynchronouscomputations, which can complete with a value or an error.

TheEventSink has been designed to handle asynchronous events fromStreams. See, for example,Stream.eventTransformed which usesEventSinks to transform events.

Implemented types
Implementers

Properties

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

Methods

add(Tevent)→ void
Adds a dataevent to the sink.
override
addError(Objecterror, [StackTrace?stackTrace])→ void
Adds anerror to the sink.
close()→ void
Closes the sink.
override
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. EventSink<T> class
dart:async library

[8]ページ先頭

©2009-2025 Movatter.jp