MockStreamHandler.inline constructor
- required MockStreamHandlerOnListenCallback onListen,
- 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;