RecordingClient constructor
RecordingClient({
- ApiResponse? nextResponse,
- ApiResponse onRequest(
- ApiRequest request
Creates a recording client with an optional default response.
Implementation
RecordingClient({ApiResponse? nextResponse, this.onRequest})
: nextResponse = nextResponse ?? ApiResponse(statusCode: 200, body: '');