getById method Null safety
- Uint8List id
Implementation
OwnershipModel? getById(Uint8List id) {
List<OwnershipModel> ownerships = _select(
whereStmt: "WHERE $columnTransactionId = x'${Bytes.hexEncode(id)}'");
return ownerships.isNotEmpty ? ownerships.first : null;
}