mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
style: use conts for constructors
This commit is contained in:
parent
e0e16aea30
commit
7187d890d6
17 changed files with 39 additions and 69 deletions
|
@ -1,16 +1,12 @@
|
|||
import 'dart:ffi';
|
||||
import 'bindings/libgit2_bindings.dart';
|
||||
import 'oid.dart';
|
||||
|
||||
class Stash {
|
||||
/// Initializes a new instance of [Stash] class.
|
||||
Stash({
|
||||
const Stash({
|
||||
required this.index,
|
||||
required this.message,
|
||||
required Pointer<git_oid> oid,
|
||||
}) {
|
||||
this.oid = Oid(oid);
|
||||
}
|
||||
required this.oid,
|
||||
});
|
||||
|
||||
/// The position within the stash list.
|
||||
final int index;
|
||||
|
@ -19,7 +15,7 @@ class Stash {
|
|||
final String message;
|
||||
|
||||
/// The commit oid of the stashed state.
|
||||
late final Oid oid;
|
||||
final Oid oid;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue