dispose method
Disposes the client. This frees the resources associated with the client. After calling this method, the client should not be used anymore.
Note: This might improve performance but it is not necessary because the client is automatically disposed when the Dart object is garbage collected.
Implementation
void dispose({bool cancelRunningRequests = false}) async {
if (ref.isDisposed) {
return;
}
if (cancelRunningRequests) {
await rust.cancelRunningRequests(client: ref);
}
ref.dispose();
}