mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat: add ability to compare objects (#54)
This commit is contained in:
parent
5dfedadfe6
commit
bad40bdb61
45 changed files with 466 additions and 137 deletions
|
@ -1,9 +1,12 @@
|
|||
import 'dart:ffi';
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:libgit2dart/libgit2dart.dart';
|
||||
import 'package:libgit2dart/src/bindings/libgit2_bindings.dart';
|
||||
import 'package:libgit2dart/src/bindings/note.dart' as bindings;
|
||||
import 'package:meta/meta.dart';
|
||||
|
||||
class Note {
|
||||
@immutable
|
||||
class Note extends Equatable {
|
||||
/// Initializes a new instance of the [Note] class from provided
|
||||
/// pointer to note and annotatedOid objects in memory.
|
||||
///
|
||||
|
@ -143,6 +146,9 @@ class Note {
|
|||
String toString() {
|
||||
return 'Note{oid: $oid, message: $message, annotatedOid: $annotatedOid}';
|
||||
}
|
||||
|
||||
@override
|
||||
List<Object?> get props => [oid];
|
||||
}
|
||||
|
||||
// coverage:ignore-start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue