MockStreamHandler.inline constructor

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

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

Implementation

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