dispose method
override
Called when the TileLayer is disposed
When disposing resources, ensure that they are not currently being used by tiles in progress.
Implementation
@override
Future<void> dispose() async {
_client.close();
await super.dispose();
}