GSheets.withClient constructor

GSheets.withClient(
  1. FutureOr<AutoRefreshingAuthClient> client
)

Creates an instance of GSheets with custom client

client - instance or Future of AutoRefreshingAuthClient that will be used for requests to google sheets api

see https://pub.dev/packages/googleapis_auth for all options of creating AutoRefreshingAuthClient

Implementation

GSheets.withClient(FutureOr<AutoRefreshingAuthClient> client)
    : _externalClient = Future.value(client),
      _credentials = null,
      _clientId = null,
      _scopes = null;