dispose method

void dispose()

Drops the client so the next initialize builds a fresh one. Used on logout: the client accumulates auth headers on options.headers, and dropping it is exhaustive where removing headers one by one is not.

Implementation

void dispose() {
  _gokwikHttpClient?.close();
  _gokwikHttpClient = null;
}