style: use Object instead of dynamic

This commit is contained in:
Aleksey Kulikov 2021-10-13 16:10:18 +03:00
parent 1972c6d1ab
commit beed516c89
13 changed files with 84 additions and 56 deletions

View file

@ -97,7 +97,11 @@ class Blob {
interhunkLines: interhunkLines,
);
return Patch(result['patch'], result['a'], result['b']);
return Patch(
result['patch'] as Pointer<git_patch>,
result['a'],
result['b'],
);
}
/// Directly generate a [Patch] from the difference between the blob and a buffer.
@ -123,7 +127,11 @@ class Blob {
interhunkLines: interhunkLines,
);
return Patch(result['patch'], result['a'], result['b']);
return Patch(
result['patch'] as Pointer<git_patch>,
result['a'],
result['b'],
);
}
/// Releases memory allocated for blob object.