mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat(repository): add ability to pass credentials in callbacks argument
This commit is contained in:
parent
299d1a17e7
commit
4c7a096fe3
31 changed files with 1340 additions and 308 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue