getById method Null safety

OwnershipModel? getById(
  1. Uint8List id
)

Implementation

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