// GENERATED CODE - DO NOT MODIFY BY HAND part of 'wallet_info_meta.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 GetWalletInfoMetaCollection on Isar { IsarCollection get walletInfoMeta => this.collection(); } const WalletInfoMetaSchema = CollectionSchema( name: r'WalletInfoMeta', id: -4749826865193299377, properties: { r'isMnemonicVerified': PropertySchema( id: 0, name: r'isMnemonicVerified', type: IsarType.bool, ), r'walletId': PropertySchema( id: 1, name: r'walletId', type: IsarType.string, ) }, estimateSize: _walletInfoMetaEstimateSize, serialize: _walletInfoMetaSerialize, deserialize: _walletInfoMetaDeserialize, deserializeProp: _walletInfoMetaDeserializeProp, idName: r'id', indexes: { r'walletId': IndexSchema( id: -1783113319798776304, name: r'walletId', unique: true, replace: false, properties: [ IndexPropertySchema( name: r'walletId', type: IndexType.hash, caseSensitive: true, ) ], ) }, links: {}, embeddedSchemas: {}, getId: _walletInfoMetaGetId, getLinks: _walletInfoMetaGetLinks, attach: _walletInfoMetaAttach, version: '3.0.5', ); int _walletInfoMetaEstimateSize( WalletInfoMeta object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; bytesCount += 3 + object.walletId.length * 3; return bytesCount; } void _walletInfoMetaSerialize( WalletInfoMeta object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeBool(offsets[0], object.isMnemonicVerified); writer.writeString(offsets[1], object.walletId); } WalletInfoMeta _walletInfoMetaDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = WalletInfoMeta( isMnemonicVerified: reader.readBool(offsets[0]), walletId: reader.readString(offsets[1]), ); object.id = id; return object; } P _walletInfoMetaDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readBool(offset)) as P; case 1: return (reader.readString(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } Id _walletInfoMetaGetId(WalletInfoMeta object) { return object.id; } List> _walletInfoMetaGetLinks(WalletInfoMeta object) { return []; } void _walletInfoMetaAttach( IsarCollection col, Id id, WalletInfoMeta object) { object.id = id; } extension WalletInfoMetaByIndex on IsarCollection { Future getByWalletId(String walletId) { return getByIndex(r'walletId', [walletId]); } WalletInfoMeta? getByWalletIdSync(String walletId) { return getByIndexSync(r'walletId', [walletId]); } Future deleteByWalletId(String walletId) { return deleteByIndex(r'walletId', [walletId]); } bool deleteByWalletIdSync(String walletId) { return deleteByIndexSync(r'walletId', [walletId]); } Future> getAllByWalletId(List walletIdValues) { final values = walletIdValues.map((e) => [e]).toList(); return getAllByIndex(r'walletId', values); } List getAllByWalletIdSync(List walletIdValues) { final values = walletIdValues.map((e) => [e]).toList(); return getAllByIndexSync(r'walletId', values); } Future deleteAllByWalletId(List walletIdValues) { final values = walletIdValues.map((e) => [e]).toList(); return deleteAllByIndex(r'walletId', values); } int deleteAllByWalletIdSync(List walletIdValues) { final values = walletIdValues.map((e) => [e]).toList(); return deleteAllByIndexSync(r'walletId', values); } Future putByWalletId(WalletInfoMeta object) { return putByIndex(r'walletId', object); } Id putByWalletIdSync(WalletInfoMeta object, {bool saveLinks = true}) { return putByIndexSync(r'walletId', object, saveLinks: saveLinks); } Future> putAllByWalletId(List objects) { return putAllByIndex(r'walletId', objects); } List putAllByWalletIdSync(List objects, {bool saveLinks = true}) { return putAllByIndexSync(r'walletId', objects, saveLinks: saveLinks); } } extension WalletInfoMetaQueryWhereSort on QueryBuilder { QueryBuilder anyId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension WalletInfoMetaQueryWhere 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, )); } }); } } extension WalletInfoMetaQueryFilter 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 isMnemonicVerifiedEqualTo(bool value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'isMnemonicVerified', 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 WalletInfoMetaQueryObject on QueryBuilder {} extension WalletInfoMetaQueryLinks on QueryBuilder {} extension WalletInfoMetaQuerySortBy on QueryBuilder { QueryBuilder sortByIsMnemonicVerified() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isMnemonicVerified', Sort.asc); }); } QueryBuilder sortByIsMnemonicVerifiedDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isMnemonicVerified', 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 WalletInfoMetaQuerySortThenBy 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 thenByIsMnemonicVerified() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isMnemonicVerified', Sort.asc); }); } QueryBuilder thenByIsMnemonicVerifiedDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isMnemonicVerified', 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 WalletInfoMetaQueryWhereDistinct on QueryBuilder { QueryBuilder distinctByIsMnemonicVerified() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'isMnemonicVerified'); }); } QueryBuilder distinctByWalletId( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'walletId', caseSensitive: caseSensitive); }); } } extension WalletInfoMetaQueryProperty on QueryBuilder { QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'id'); }); } QueryBuilder isMnemonicVerifiedProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'isMnemonicVerified'); }); } QueryBuilder walletIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'walletId'); }); } }