// GENERATED CODE - DO NOT MODIFY BY HAND part of 'transaction_note.dart'; // ************************************************************************** // IsarCollectionGenerator // ************************************************************************** // coverage:ignore-file // ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters extension GetTransactionNoteCollection on Isar { IsarCollection get transactionNotes => this.collection(); } const TransactionNoteSchema = CollectionSchema( name: r'TransactionNote', id: 5128348263878806765, properties: { r'txid': PropertySchema( id: 0, name: r'txid', type: IsarType.string, ), r'value': PropertySchema( id: 1, name: r'value', type: IsarType.string, ), r'walletId': PropertySchema( id: 2, name: r'walletId', type: IsarType.string, ) }, estimateSize: _transactionNoteEstimateSize, serialize: _transactionNoteSerialize, deserialize: _transactionNoteDeserialize, deserializeProp: _transactionNoteDeserializeProp, idName: r'id', indexes: { r'walletId': IndexSchema( id: -1783113319798776304, name: r'walletId', unique: false, replace: false, properties: [ IndexPropertySchema( name: r'walletId', type: IndexType.hash, caseSensitive: true, ) ], ), r'txid_walletId': IndexSchema( id: -2771771174176035985, name: r'txid_walletId', unique: true, replace: true, properties: [ IndexPropertySchema( name: r'txid', type: IndexType.hash, caseSensitive: true, ), IndexPropertySchema( name: r'walletId', type: IndexType.hash, caseSensitive: true, ) ], ) }, links: {}, embeddedSchemas: {}, getId: _transactionNoteGetId, getLinks: _transactionNoteGetLinks, attach: _transactionNoteAttach, version: '3.0.5', ); int _transactionNoteEstimateSize( TransactionNote object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; bytesCount += 3 + object.txid.length * 3; bytesCount += 3 + object.value.length * 3; bytesCount += 3 + object.walletId.length * 3; return bytesCount; } void _transactionNoteSerialize( TransactionNote object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeString(offsets[0], object.txid); writer.writeString(offsets[1], object.value); writer.writeString(offsets[2], object.walletId); } TransactionNote _transactionNoteDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = TransactionNote( txid: reader.readString(offsets[0]), value: reader.readString(offsets[1]), walletId: reader.readString(offsets[2]), ); object.id = id; return object; } P _transactionNoteDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readString(offset)) as P; case 1: return (reader.readString(offset)) as P; case 2: return (reader.readString(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } Id _transactionNoteGetId(TransactionNote object) { return object.id; } List> _transactionNoteGetLinks(TransactionNote object) { return []; } void _transactionNoteAttach( IsarCollection col, Id id, TransactionNote object) { object.id = id; } extension TransactionNoteByIndex on IsarCollection { Future getByTxidWalletId(String txid, String walletId) { return getByIndex(r'txid_walletId', [txid, walletId]); } TransactionNote? getByTxidWalletIdSync(String txid, String walletId) { return getByIndexSync(r'txid_walletId', [txid, walletId]); } Future deleteByTxidWalletId(String txid, String walletId) { return deleteByIndex(r'txid_walletId', [txid, walletId]); } bool deleteByTxidWalletIdSync(String txid, String walletId) { return deleteByIndexSync(r'txid_walletId', [txid, walletId]); } Future> getAllByTxidWalletId( List txidValues, List walletIdValues) { final len = txidValues.length; assert(walletIdValues.length == len, 'All index values must have the same length'); final values = >[]; for (var i = 0; i < len; i++) { values.add([txidValues[i], walletIdValues[i]]); } return getAllByIndex(r'txid_walletId', values); } List getAllByTxidWalletIdSync( List txidValues, List walletIdValues) { final len = txidValues.length; assert(walletIdValues.length == len, 'All index values must have the same length'); final values = >[]; for (var i = 0; i < len; i++) { values.add([txidValues[i], walletIdValues[i]]); } return getAllByIndexSync(r'txid_walletId', values); } Future deleteAllByTxidWalletId( List txidValues, List walletIdValues) { final len = txidValues.length; assert(walletIdValues.length == len, 'All index values must have the same length'); final values = >[]; for (var i = 0; i < len; i++) { values.add([txidValues[i], walletIdValues[i]]); } return deleteAllByIndex(r'txid_walletId', values); } int deleteAllByTxidWalletIdSync( List txidValues, List walletIdValues) { final len = txidValues.length; assert(walletIdValues.length == len, 'All index values must have the same length'); final values = >[]; for (var i = 0; i < len; i++) { values.add([txidValues[i], walletIdValues[i]]); } return deleteAllByIndexSync(r'txid_walletId', values); } Future putByTxidWalletId(TransactionNote object) { return putByIndex(r'txid_walletId', object); } Id putByTxidWalletIdSync(TransactionNote object, {bool saveLinks = true}) { return putByIndexSync(r'txid_walletId', object, saveLinks: saveLinks); } Future> putAllByTxidWalletId(List objects) { return putAllByIndex(r'txid_walletId', objects); } List putAllByTxidWalletIdSync(List objects, {bool saveLinks = true}) { return putAllByIndexSync(r'txid_walletId', objects, saveLinks: saveLinks); } } extension TransactionNoteQueryWhereSort on QueryBuilder { QueryBuilder anyId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension TransactionNoteQueryWhere on QueryBuilder { QueryBuilder idEqualTo( Id id) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IdWhereClause.between( lower: id, upper: id, )); }); } QueryBuilder idNotEqualTo(Id id) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause( IdWhereClause.lessThan(upper: id, includeUpper: false), ) .addWhereClause( IdWhereClause.greaterThan(lower: id, includeLower: false), ); } else { return query .addWhereClause( IdWhereClause.greaterThan(lower: id, includeLower: false), ) .addWhereClause( IdWhereClause.lessThan(upper: id, includeUpper: false), ); } }); } QueryBuilder idGreaterThan(Id id, {bool include = false}) { return QueryBuilder.apply(this, (query) { return query.addWhereClause( IdWhereClause.greaterThan(lower: id, includeLower: include), ); }); } QueryBuilder idLessThan( Id id, {bool include = false}) { return QueryBuilder.apply(this, (query) { return query.addWhereClause( IdWhereClause.lessThan(upper: id, includeUpper: include), ); }); } QueryBuilder idBetween( Id lowerId, Id upperId, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IdWhereClause.between( lower: lowerId, includeLower: includeLower, upper: upperId, includeUpper: includeUpper, )); }); } QueryBuilder walletIdEqualTo(String walletId) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'walletId', value: [walletId], )); }); } QueryBuilder walletIdNotEqualTo(String walletId) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'walletId', lower: [], upper: [walletId], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'walletId', lower: [walletId], includeLower: false, upper: [], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'walletId', lower: [walletId], includeLower: false, upper: [], )) .addWhereClause(IndexWhereClause.between( indexName: r'walletId', lower: [], upper: [walletId], includeUpper: false, )); } }); } QueryBuilder txidEqualToAnyWalletId(String txid) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'txid_walletId', value: [txid], )); }); } QueryBuilder txidNotEqualToAnyWalletId(String txid) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'txid_walletId', lower: [], upper: [txid], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'txid_walletId', lower: [txid], includeLower: false, upper: [], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'txid_walletId', lower: [txid], includeLower: false, upper: [], )) .addWhereClause(IndexWhereClause.between( indexName: r'txid_walletId', lower: [], upper: [txid], includeUpper: false, )); } }); } QueryBuilder txidWalletIdEqualTo(String txid, String walletId) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'txid_walletId', value: [txid, walletId], )); }); } QueryBuilder txidEqualToWalletIdNotEqualTo(String txid, String walletId) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'txid_walletId', lower: [txid], upper: [txid, walletId], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'txid_walletId', lower: [txid, walletId], includeLower: false, upper: [txid], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'txid_walletId', lower: [txid, walletId], includeLower: false, upper: [txid], )) .addWhereClause(IndexWhereClause.between( indexName: r'txid_walletId', lower: [txid], upper: [txid, walletId], includeUpper: false, )); } }); } } extension TransactionNoteQueryFilter on QueryBuilder { QueryBuilder idEqualTo(Id value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'id', value: value, )); }); } QueryBuilder idGreaterThan( Id value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'id', value: value, )); }); } QueryBuilder idLessThan( Id value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'id', value: value, )); }); } QueryBuilder idBetween( Id lower, Id upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'id', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder txidEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'txid', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder txidGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'txid', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder txidLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'txid', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder txidBetween( String lower, String upper, { bool includeLower = true, bool includeUpper = true, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'txid', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder txidStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'txid', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder txidEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'txid', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder txidContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'txid', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder txidMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'txid', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder txidIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'txid', value: '', )); }); } QueryBuilder txidIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'txid', value: '', )); }); } QueryBuilder valueEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'value', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder valueGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'value', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder valueLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'value', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder valueBetween( String lower, String upper, { bool includeLower = true, bool includeUpper = true, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'value', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder valueStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'value', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder valueEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'value', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder valueContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'value', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder valueMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'value', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder valueIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'value', value: '', )); }); } QueryBuilder valueIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'value', value: '', )); }); } QueryBuilder walletIdEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdBetween( String lower, String upper, { bool includeLower = true, bool includeUpper = true, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'walletId', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'walletId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'walletId', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder walletIdIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'walletId', value: '', )); }); } QueryBuilder walletIdIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'walletId', value: '', )); }); } } extension TransactionNoteQueryObject on QueryBuilder {} extension TransactionNoteQueryLinks on QueryBuilder {} extension TransactionNoteQuerySortBy on QueryBuilder { QueryBuilder sortByTxid() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'txid', Sort.asc); }); } QueryBuilder sortByTxidDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'txid', Sort.desc); }); } QueryBuilder sortByValue() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'value', Sort.asc); }); } QueryBuilder sortByValueDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'value', Sort.desc); }); } QueryBuilder sortByWalletId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'walletId', Sort.asc); }); } QueryBuilder sortByWalletIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'walletId', Sort.desc); }); } } extension TransactionNoteQuerySortThenBy on QueryBuilder { QueryBuilder thenById() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'id', Sort.asc); }); } QueryBuilder thenByIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'id', Sort.desc); }); } QueryBuilder thenByTxid() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'txid', Sort.asc); }); } QueryBuilder thenByTxidDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'txid', Sort.desc); }); } QueryBuilder thenByValue() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'value', Sort.asc); }); } QueryBuilder thenByValueDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'value', Sort.desc); }); } QueryBuilder thenByWalletId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'walletId', Sort.asc); }); } QueryBuilder thenByWalletIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'walletId', Sort.desc); }); } } extension TransactionNoteQueryWhereDistinct on QueryBuilder { QueryBuilder distinctByTxid( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'txid', caseSensitive: caseSensitive); }); } QueryBuilder distinctByValue( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'value', caseSensitive: caseSensitive); }); } QueryBuilder distinctByWalletId( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'walletId', caseSensitive: caseSensitive); }); } } extension TransactionNoteQueryProperty on QueryBuilder { QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'id'); }); } QueryBuilder txidProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'txid'); }); } QueryBuilder valueProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'value'); }); } QueryBuilder walletIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'walletId'); }); } }