MockStreamHandler.inline constructor

const MockStreamHandler.inline({
  1. required MockStreamHandlerOnListenCallback onListen,
  2. MockStreamHandlerOnCancelCallback? onCancel,
})

Create a new inline MockStreamHandler with the given onListen and onCancel handlers.

Implementation

const factory MockStreamHandler.inline({
  required MockStreamHandlerOnListenCallback onListen,
  MockStreamHandlerOnCancelCallback? onCancel,
}) = _InlineMockStreamHandler;