feat(repository): add ability to pass credentials in callbacks argument

This commit is contained in:
Aleksey Kulikov 2021-09-29 18:54:29 +03:00
parent 299d1a17e7
commit 4c7a096fe3
31 changed files with 1340 additions and 308 deletions

View file

@ -1,14 +1,19 @@
import 'credentials.dart';
import 'oid.dart';
import 'remote.dart';
class Callbacks {
const Callbacks({
this.credentials,
this.transferProgress,
this.sidebandProgress,
this.updateTips,
this.pushUpdateReference,
});
/// Credentials used for authentication.
final Credentials? credentials;
/// Callback function that reports transfer progress.
final void Function(TransferProgress)? transferProgress;