OwnershipRepository class Null safety

The repository for OwnershipModel persistence.

Constructors

OwnershipRepository(Database _db)
Builds a OwnershipRepository 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

getAll() → List<OwnershipModel>
Gets all OwnerShipModel stored in local database.
getById(Uint8List id) OwnershipModel?
getBySource(String source, String origin) OwnershipModel?
Gets the OwnerShipModel for source and origin in database.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
save(OwnershipModel ownership) → void
Persists ownership in _db.
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

columnAbout → const String
'about'
columnContains → const String
'contains'
columnOrigin → const String
'origin'
columnSource → const String
'source'
columnTransactionId → const String
'transaction_id'
columnType → const String
'type'
table → const String
'ownership'