MockStreamHandlerEventSink class

A mock event sink for a MockStreamHandler that mimics the native EventSink API.

Constructors

MockStreamHandlerEventSink(EventSink<Object?> sink)
Create a new MockStreamHandlerEventSink with the given sink.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

endOfStream() → void
Send an end of stream event.
error({required String code, String? message, Object? details}) → void
Send an error event.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
success(Object? event) → void
Send a success event.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited