mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 12:49:08 -04:00
style: avoid lines longer than 80 characters
This commit is contained in:
parent
a806d0a312
commit
7b14ee6b9b
76 changed files with 1246 additions and 972 deletions
|
@ -1,20 +1,24 @@
|
|||
import 'package:libgit2dart/libgit2dart.dart';
|
||||
|
||||
class Callbacks {
|
||||
/// Callback functions used in various methods of [Remote] and with [Repository.clone].
|
||||
/// Callback functions used in various methods of [Remote] and with
|
||||
/// [Repository.clone].
|
||||
///
|
||||
/// [credentials] is the [Credentials] object used for authentication.
|
||||
///
|
||||
/// [transferProgress] is the callback function that reports transfer progress.
|
||||
/// [transferProgress] is the callback function that reports transfer
|
||||
/// progress.
|
||||
///
|
||||
/// [sidebandProgress] is the callback function that reports textual progress from the remote.
|
||||
/// [sidebandProgress] is the callback function that reports textual progress
|
||||
/// from the remote.
|
||||
///
|
||||
/// [updateTips] is the callback function matching the
|
||||
/// `void Function(String refname, Oid old, Oid new)` that report reference updates.
|
||||
/// `void Function(String refname, Oid old, Oid new)` that report reference
|
||||
/// updates.
|
||||
///
|
||||
/// [pushUpdateReference] is the callback function matching the
|
||||
/// `void Function(String refname, String message)` used to inform of the update status
|
||||
/// from the remote.
|
||||
/// `void Function(String refname, String message)` used to inform of the
|
||||
/// update status from the remote.
|
||||
const Callbacks({
|
||||
this.credentials,
|
||||
this.transferProgress,
|
||||
|
@ -32,11 +36,13 @@ class Callbacks {
|
|||
/// Callback function that reports textual progress from the remote.
|
||||
final void Function(String)? sidebandProgress;
|
||||
|
||||
/// Callback function matching the `void Function(String refname, Oid old, Oid new)`
|
||||
/// that report reference updates.
|
||||
/// Callback function matching the
|
||||
/// `void Function(String refname, Oid old, Oid new)` that report reference
|
||||
/// updates.
|
||||
final void Function(String, Oid, Oid)? updateTips;
|
||||
|
||||
/// Callback function matching the `void Function(String refname, String message)`
|
||||
/// used to inform of the update status from the remote.
|
||||
/// Callback function matching the
|
||||
/// `void Function(String refname, String message)` used to inform of the
|
||||
/// update status from the remote.
|
||||
final void Function(String, String)? pushUpdateReference;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue