TomGitStorage constructor

TomGitStorage({
  1. required TomGitCloneOpener openClone,
  2. TomGitLocalOpener? openLocal,
  3. TomTokenSource? tokens,
  4. Client? client,
  5. ({String email, String name}) committer()?,
  6. String commitMessagePrefix = '',
  7. int maxPushAttempts = 5,
  8. int? maxObjectBytes,
})

Implementation

TomGitStorage({
  required this.openClone,
  this.openLocal,
  this.tokens,
  http.Client? client,
  ({String name, String email}) Function()? committer,
  this.commitMessagePrefix = '',
  this.maxPushAttempts = 5,
  int? maxObjectBytes,
}) : _client = client,
     _committer =
         committer ??
         (() => (name: 'Tom storage', email: 'tom-storage@localhost')),
     _maxObjectBytes = maxObjectBytes;