ConsentRepository class Null safety

The repository for ConsentModel persistence.

Constructors

ConsentRepository(Database _db)
Builds a ConsentRepository that will use _db for persistence.

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getByOwnershipId(Uint8List ownershipId) ConsentModel?
Gets the latest ConsentModel for an ownershipId.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
save(ConsentModel consent) → void
Persists consent in _db.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

columnAbout → const String
The table column for ConsentModel.about
'about'
columnDestination → const String
The table column for ConsentModel.destination
'destination'
columnExpiry → const String
The tabl column for ConsentModel.expiry
'expiry'
columnOwnershipId → const String
The table column for ConsentModel.ownershipId
'ownershipId'
columnReward → const String
The table column for ConsentModel.reward
'reward'
columnTransactionId → const String
The table column for ConsentModel.transactionId
'transaction_id'
table → const String
The table that will persist ConsentModel
'consent'