close method
void
close()
Closes the connection to the Scryfall server.
Any subsequent use of this instance is invalid
and results in a http.ClientException
.
This method closes the underlying http.Client
.
Therefore, if a http.Client
was provided when
creating the ScryfallApiClient, closing that
http.Client
is equivalent to calling this method.
It's important to close each client when it's done being used; failing to do so can cause the Dart process to hang.
Implementation
void close() {
_httpClient.close();
}