mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
refactor: use private constructors with internal classes
This commit is contained in:
parent
77a34c3335
commit
2ceead3917
7 changed files with 19 additions and 19 deletions
|
@ -154,7 +154,7 @@ class Patch {
|
|||
PatchStats get stats {
|
||||
final result = bindings.lineStats(_patchPointer);
|
||||
|
||||
return PatchStats(
|
||||
return PatchStats._(
|
||||
context: result['context']!,
|
||||
insertions: result['insertions']!,
|
||||
deletions: result['deletions']!,
|
||||
|
@ -266,7 +266,7 @@ final _finalizer = Finalizer<Pointer<git_patch>>(
|
|||
|
||||
/// Line counts of each type in a patch.
|
||||
class PatchStats {
|
||||
const PatchStats({
|
||||
const PatchStats._({
|
||||
required this.context,
|
||||
required this.insertions,
|
||||
required this.deletions,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue