TomGitHubStorage.withClient constructor
TomGitHubStorage.withClient(
- GitHubApiClient client, {
- DateTime clock()?,
- TomDiagnostics diagnostics = const TomNullDiagnostics(),
- TomStorageCache? cache,
- String commitMessagePrefix = '',
- GitHubGitIdentity? committer,
A backend over an already-authenticated client. For tests and for a caller that obtained a token some other way.
Implementation
TomGitHubStorage.withClient(
GitHubApiClient client, {
DateTime Function()? clock,
this.diagnostics = const TomNullDiagnostics(),
this.cache,
this.commitMessagePrefix = '',
this.committer,
}) : _tokens = null,
_clientFactory = null,
_client = client,
_clock = clock ?? _utcNow;