RecordingClient constructor

RecordingClient({
  1. ApiResponse? nextResponse,
  2. ApiResponse onRequest(
    1. ApiRequest request
    )?,
})

Creates a recording client with an optional default response.

Implementation

RecordingClient({ApiResponse? nextResponse, this.onRequest})
  : nextResponse = nextResponse ?? ApiResponse(statusCode: 200, body: '');