mock_event_channel library

Classes

MockStreamHandler
A mock stream handler for an EventChannel that mimics the native StreamHandler API.
MockStreamHandlerEventSink
A mock event sink for a MockStreamHandler that mimics the native EventSink API.

Typedefs

MockStreamHandlerOnCancelCallback = void Function(Object? arguments)
Typedef for the inline onCancel callback.
MockStreamHandlerOnListenCallback = void Function(Object? arguments, MockStreamHandlerEventSink events)
Typedef for the inline onListen callback.