dispose method

void dispose()

Releases the underlying HTTP client. Call when this instance is no longer needed (e.g. dispose() of the widget that owns it).

Implementation

void dispose() => _apiClient.close();