getCalls static method
Get all recorded calls.
Implementation
static List<ApiCallInfo> getCalls() => _callHistory
.map(
(r) => ApiCallInfo(
endpoint: r.endpoint,
method: r.method,
data: r.data,
headers: r.headers,
timestamp: r.timestamp,
),
)
.toList();