// GENERATED CODE - DO NOT MODIFY BY HAND part of 'wallet_info.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 GetWalletInfoCollection on Isar { IsarCollection get walletInfo => this.collection(); } const WalletInfoSchema = CollectionSchema( name: r'WalletInfo', id: -2861501434900022153, properties: { r'cachedBalanceSecondaryString': PropertySchema( id: 0, name: r'cachedBalanceSecondaryString', type: IsarType.string, ), r'cachedBalanceString': PropertySchema( id: 1, name: r'cachedBalanceString', type: IsarType.string, ), r'cachedBalanceTertiaryString': PropertySchema( id: 2, name: r'cachedBalanceTertiaryString', type: IsarType.string, ), r'cachedChainHeight': PropertySchema( id: 3, name: r'cachedChainHeight', type: IsarType.long, ), r'cachedReceivingAddress': PropertySchema( id: 4, name: r'cachedReceivingAddress', type: IsarType.string, ), r'coinName': PropertySchema( id: 5, name: r'coinName', type: IsarType.string, ), r'favouriteOrderIndex': PropertySchema( id: 6, name: r'favouriteOrderIndex', type: IsarType.long, ), r'isFavourite': PropertySchema( id: 7, name: r'isFavourite', type: IsarType.bool, ), r'mainAddressType': PropertySchema( id: 8, name: r'mainAddressType', type: IsarType.byte, enumMap: _WalletInfomainAddressTypeEnumValueMap, ), r'name': PropertySchema( id: 9, name: r'name', type: IsarType.string, ), r'otherDataJsonString': PropertySchema( id: 10, name: r'otherDataJsonString', type: IsarType.string, ), r'restoreHeight': PropertySchema( id: 11, name: r'restoreHeight', type: IsarType.long, ), r'tokenContractAddresses': PropertySchema( id: 12, name: r'tokenContractAddresses', type: IsarType.stringList, ), r'walletId': PropertySchema( id: 13, name: r'walletId', type: IsarType.string, ) }, estimateSize: _walletInfoEstimateSize, serialize: _walletInfoSerialize, deserialize: _walletInfoDeserialize, deserializeProp: _walletInfoDeserializeProp, 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: _walletInfoGetId, getLinks: _walletInfoGetLinks, attach: _walletInfoAttach, version: '3.0.5', ); int _walletInfoEstimateSize( WalletInfo object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; { final value = object.cachedBalanceSecondaryString; if (value != null) { bytesCount += 3 + value.length * 3; } } { final value = object.cachedBalanceString; if (value != null) { bytesCount += 3 + value.length * 3; } } { final value = object.cachedBalanceTertiaryString; if (value != null) { bytesCount += 3 + value.length * 3; } } bytesCount += 3 + object.cachedReceivingAddress.length * 3; bytesCount += 3 + object.coinName.length * 3; bytesCount += 3 + object.name.length * 3; { final value = object.otherDataJsonString; if (value != null) { bytesCount += 3 + value.length * 3; } } bytesCount += 3 + object.tokenContractAddresses.length * 3; { for (var i = 0; i < object.tokenContractAddresses.length; i++) { final value = object.tokenContractAddresses[i]; bytesCount += value.length * 3; } } bytesCount += 3 + object.walletId.length * 3; return bytesCount; } void _walletInfoSerialize( WalletInfo object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeString(offsets[0], object.cachedBalanceSecondaryString); writer.writeString(offsets[1], object.cachedBalanceString); writer.writeString(offsets[2], object.cachedBalanceTertiaryString); writer.writeLong(offsets[3], object.cachedChainHeight); writer.writeString(offsets[4], object.cachedReceivingAddress); writer.writeString(offsets[5], object.coinName); writer.writeLong(offsets[6], object.favouriteOrderIndex); writer.writeBool(offsets[7], object.isFavourite); writer.writeByte(offsets[8], object.mainAddressType.index); writer.writeString(offsets[9], object.name); writer.writeString(offsets[10], object.otherDataJsonString); writer.writeLong(offsets[11], object.restoreHeight); writer.writeStringList(offsets[12], object.tokenContractAddresses); writer.writeString(offsets[13], object.walletId); } WalletInfo _walletInfoDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = WalletInfo( cachedBalanceSecondaryString: reader.readStringOrNull(offsets[0]), cachedBalanceString: reader.readStringOrNull(offsets[1]), cachedBalanceTertiaryString: reader.readStringOrNull(offsets[2]), cachedChainHeight: reader.readLongOrNull(offsets[3]) ?? 0, cachedReceivingAddress: reader.readStringOrNull(offsets[4]) ?? "", coinName: reader.readString(offsets[5]), favouriteOrderIndex: reader.readLongOrNull(offsets[6]) ?? -1, mainAddressType: _WalletInfomainAddressTypeValueEnumMap[ reader.readByteOrNull(offsets[8])] ?? AddressType.p2pkh, name: reader.readString(offsets[9]), otherDataJsonString: reader.readStringOrNull(offsets[10]), restoreHeight: reader.readLongOrNull(offsets[11]) ?? 0, walletId: reader.readString(offsets[13]), ); object.id = id; return object; } P _walletInfoDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readStringOrNull(offset)) as P; case 1: return (reader.readStringOrNull(offset)) as P; case 2: return (reader.readStringOrNull(offset)) as P; case 3: return (reader.readLongOrNull(offset) ?? 0) as P; case 4: return (reader.readStringOrNull(offset) ?? "") as P; case 5: return (reader.readString(offset)) as P; case 6: return (reader.readLongOrNull(offset) ?? -1) as P; case 7: return (reader.readBool(offset)) as P; case 8: return (_WalletInfomainAddressTypeValueEnumMap[ reader.readByteOrNull(offset)] ?? AddressType.p2pkh) as P; case 9: return (reader.readString(offset)) as P; case 10: return (reader.readStringOrNull(offset)) as P; case 11: return (reader.readLongOrNull(offset) ?? 0) as P; case 12: return (reader.readStringList(offset) ?? []) as P; case 13: return (reader.readString(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } const _WalletInfomainAddressTypeEnumValueMap = { 'p2pkh': 0, 'p2sh': 1, 'p2wpkh': 2, 'cryptonote': 3, 'mimbleWimble': 4, 'unknown': 5, 'nonWallet': 6, 'ethereum': 7, 'nano': 8, 'banano': 9, 'spark': 10, 'stellar': 11, 'tezos': 12, 'frostMS': 13, 'p2tr': 14, }; const _WalletInfomainAddressTypeValueEnumMap = { 0: AddressType.p2pkh, 1: AddressType.p2sh, 2: AddressType.p2wpkh, 3: AddressType.cryptonote, 4: AddressType.mimbleWimble, 5: AddressType.unknown, 6: AddressType.nonWallet, 7: AddressType.ethereum, 8: AddressType.nano, 9: AddressType.banano, 10: AddressType.spark, 11: AddressType.stellar, 12: AddressType.tezos, 13: AddressType.frostMS, 14: AddressType.p2tr, }; Id _walletInfoGetId(WalletInfo object) { return object.id; } List> _walletInfoGetLinks(WalletInfo object) { return []; } void _walletInfoAttach(IsarCollection col, Id id, WalletInfo object) { object.id = id; } extension WalletInfoByIndex on IsarCollection { Future getByWalletId(String walletId) { return getByIndex(r'walletId', [walletId]); } WalletInfo? 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(WalletInfo object) { return putByIndex(r'walletId', object); } Id putByWalletIdSync(WalletInfo 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 WalletInfoQueryWhereSort on QueryBuilder { QueryBuilder anyId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension WalletInfoQueryWhere 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 WalletInfoQueryFilter on QueryBuilder { QueryBuilder cachedBalanceSecondaryStringIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'cachedBalanceSecondaryString', )); }); } QueryBuilder cachedBalanceSecondaryStringIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'cachedBalanceSecondaryString', )); }); } QueryBuilder cachedBalanceSecondaryStringEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'cachedBalanceSecondaryString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceSecondaryStringGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'cachedBalanceSecondaryString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceSecondaryStringLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'cachedBalanceSecondaryString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceSecondaryStringBetween( 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'cachedBalanceSecondaryString', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceSecondaryStringStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'cachedBalanceSecondaryString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceSecondaryStringEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'cachedBalanceSecondaryString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceSecondaryStringContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'cachedBalanceSecondaryString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceSecondaryStringMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'cachedBalanceSecondaryString', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceSecondaryStringIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'cachedBalanceSecondaryString', value: '', )); }); } QueryBuilder cachedBalanceSecondaryStringIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'cachedBalanceSecondaryString', value: '', )); }); } QueryBuilder cachedBalanceStringIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'cachedBalanceString', )); }); } QueryBuilder cachedBalanceStringIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'cachedBalanceString', )); }); } QueryBuilder cachedBalanceStringEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'cachedBalanceString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceStringGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'cachedBalanceString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceStringLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'cachedBalanceString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceStringBetween( 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'cachedBalanceString', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceStringStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'cachedBalanceString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceStringEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'cachedBalanceString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceStringContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'cachedBalanceString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceStringMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'cachedBalanceString', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceStringIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'cachedBalanceString', value: '', )); }); } QueryBuilder cachedBalanceStringIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'cachedBalanceString', value: '', )); }); } QueryBuilder cachedBalanceTertiaryStringIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'cachedBalanceTertiaryString', )); }); } QueryBuilder cachedBalanceTertiaryStringIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'cachedBalanceTertiaryString', )); }); } QueryBuilder cachedBalanceTertiaryStringEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'cachedBalanceTertiaryString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceTertiaryStringGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'cachedBalanceTertiaryString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceTertiaryStringLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'cachedBalanceTertiaryString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceTertiaryStringBetween( 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'cachedBalanceTertiaryString', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceTertiaryStringStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'cachedBalanceTertiaryString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceTertiaryStringEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'cachedBalanceTertiaryString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceTertiaryStringContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'cachedBalanceTertiaryString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceTertiaryStringMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'cachedBalanceTertiaryString', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceTertiaryStringIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'cachedBalanceTertiaryString', value: '', )); }); } QueryBuilder cachedBalanceTertiaryStringIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'cachedBalanceTertiaryString', value: '', )); }); } QueryBuilder cachedChainHeightEqualTo(int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'cachedChainHeight', value: value, )); }); } QueryBuilder cachedChainHeightGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'cachedChainHeight', value: value, )); }); } QueryBuilder cachedChainHeightLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'cachedChainHeight', value: value, )); }); } QueryBuilder cachedChainHeightBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'cachedChainHeight', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder cachedReceivingAddressEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'cachedReceivingAddress', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedReceivingAddressGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'cachedReceivingAddress', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedReceivingAddressLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'cachedReceivingAddress', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedReceivingAddressBetween( 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'cachedReceivingAddress', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedReceivingAddressStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'cachedReceivingAddress', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedReceivingAddressEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'cachedReceivingAddress', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedReceivingAddressContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'cachedReceivingAddress', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedReceivingAddressMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'cachedReceivingAddress', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedReceivingAddressIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'cachedReceivingAddress', value: '', )); }); } QueryBuilder cachedReceivingAddressIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'cachedReceivingAddress', value: '', )); }); } QueryBuilder coinNameEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'coinName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder coinNameGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'coinName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder coinNameLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'coinName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder coinNameBetween( 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'coinName', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder coinNameStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'coinName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder coinNameEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'coinName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder coinNameContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'coinName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder coinNameMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'coinName', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder coinNameIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'coinName', value: '', )); }); } QueryBuilder coinNameIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'coinName', value: '', )); }); } QueryBuilder favouriteOrderIndexEqualTo(int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'favouriteOrderIndex', value: value, )); }); } QueryBuilder favouriteOrderIndexGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'favouriteOrderIndex', value: value, )); }); } QueryBuilder favouriteOrderIndexLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'favouriteOrderIndex', value: value, )); }); } QueryBuilder favouriteOrderIndexBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'favouriteOrderIndex', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } 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 isFavouriteEqualTo(bool value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'isFavourite', value: value, )); }); } QueryBuilder mainAddressTypeEqualTo(AddressType value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'mainAddressType', value: value, )); }); } QueryBuilder mainAddressTypeGreaterThan( AddressType value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'mainAddressType', value: value, )); }); } QueryBuilder mainAddressTypeLessThan( AddressType value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'mainAddressType', value: value, )); }); } QueryBuilder mainAddressTypeBetween( AddressType lower, AddressType upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'mainAddressType', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder nameEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'name', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder nameGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'name', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder nameLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'name', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder nameBetween( 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'name', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder nameStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'name', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder nameEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'name', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder nameContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'name', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder nameMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'name', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder nameIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'name', value: '', )); }); } QueryBuilder nameIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'name', value: '', )); }); } QueryBuilder otherDataJsonStringIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'otherDataJsonString', )); }); } QueryBuilder otherDataJsonStringIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'otherDataJsonString', )); }); } QueryBuilder otherDataJsonStringEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'otherDataJsonString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder otherDataJsonStringGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'otherDataJsonString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder otherDataJsonStringLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'otherDataJsonString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder otherDataJsonStringBetween( 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'otherDataJsonString', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder otherDataJsonStringStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'otherDataJsonString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder otherDataJsonStringEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'otherDataJsonString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder otherDataJsonStringContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'otherDataJsonString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder otherDataJsonStringMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'otherDataJsonString', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder otherDataJsonStringIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'otherDataJsonString', value: '', )); }); } QueryBuilder otherDataJsonStringIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'otherDataJsonString', value: '', )); }); } QueryBuilder restoreHeightEqualTo(int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'restoreHeight', value: value, )); }); } QueryBuilder restoreHeightGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'restoreHeight', value: value, )); }); } QueryBuilder restoreHeightLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'restoreHeight', value: value, )); }); } QueryBuilder restoreHeightBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'restoreHeight', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder tokenContractAddressesElementEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'tokenContractAddresses', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tokenContractAddressesElementGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'tokenContractAddresses', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tokenContractAddressesElementLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'tokenContractAddresses', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tokenContractAddressesElementBetween( 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'tokenContractAddresses', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder tokenContractAddressesElementStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'tokenContractAddresses', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tokenContractAddressesElementEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'tokenContractAddresses', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tokenContractAddressesElementContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'tokenContractAddresses', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tokenContractAddressesElementMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'tokenContractAddresses', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder tokenContractAddressesElementIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'tokenContractAddresses', value: '', )); }); } QueryBuilder tokenContractAddressesElementIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'tokenContractAddresses', value: '', )); }); } QueryBuilder tokenContractAddressesLengthEqualTo(int length) { return QueryBuilder.apply(this, (query) { return query.listLength( r'tokenContractAddresses', length, true, length, true, ); }); } QueryBuilder tokenContractAddressesIsEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'tokenContractAddresses', 0, true, 0, true, ); }); } QueryBuilder tokenContractAddressesIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'tokenContractAddresses', 0, false, 999999, true, ); }); } QueryBuilder tokenContractAddressesLengthLessThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'tokenContractAddresses', 0, true, length, include, ); }); } QueryBuilder tokenContractAddressesLengthGreaterThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'tokenContractAddresses', length, include, 999999, true, ); }); } QueryBuilder tokenContractAddressesLengthBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'tokenContractAddresses', lower, includeLower, upper, includeUpper, ); }); } 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 WalletInfoQueryObject on QueryBuilder {} extension WalletInfoQueryLinks on QueryBuilder {} extension WalletInfoQuerySortBy on QueryBuilder { QueryBuilder sortByCachedBalanceSecondaryString() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedBalanceSecondaryString', Sort.asc); }); } QueryBuilder sortByCachedBalanceSecondaryStringDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedBalanceSecondaryString', Sort.desc); }); } QueryBuilder sortByCachedBalanceString() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedBalanceString', Sort.asc); }); } QueryBuilder sortByCachedBalanceStringDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedBalanceString', Sort.desc); }); } QueryBuilder sortByCachedBalanceTertiaryString() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedBalanceTertiaryString', Sort.asc); }); } QueryBuilder sortByCachedBalanceTertiaryStringDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedBalanceTertiaryString', Sort.desc); }); } QueryBuilder sortByCachedChainHeight() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedChainHeight', Sort.asc); }); } QueryBuilder sortByCachedChainHeightDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedChainHeight', Sort.desc); }); } QueryBuilder sortByCachedReceivingAddress() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedReceivingAddress', Sort.asc); }); } QueryBuilder sortByCachedReceivingAddressDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedReceivingAddress', Sort.desc); }); } QueryBuilder sortByCoinName() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'coinName', Sort.asc); }); } QueryBuilder sortByCoinNameDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'coinName', Sort.desc); }); } QueryBuilder sortByFavouriteOrderIndex() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'favouriteOrderIndex', Sort.asc); }); } QueryBuilder sortByFavouriteOrderIndexDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'favouriteOrderIndex', Sort.desc); }); } QueryBuilder sortByIsFavourite() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isFavourite', Sort.asc); }); } QueryBuilder sortByIsFavouriteDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isFavourite', Sort.desc); }); } QueryBuilder sortByMainAddressType() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'mainAddressType', Sort.asc); }); } QueryBuilder sortByMainAddressTypeDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'mainAddressType', Sort.desc); }); } QueryBuilder sortByName() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'name', Sort.asc); }); } QueryBuilder sortByNameDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'name', Sort.desc); }); } QueryBuilder sortByOtherDataJsonString() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'otherDataJsonString', Sort.asc); }); } QueryBuilder sortByOtherDataJsonStringDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'otherDataJsonString', Sort.desc); }); } QueryBuilder sortByRestoreHeight() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'restoreHeight', Sort.asc); }); } QueryBuilder sortByRestoreHeightDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'restoreHeight', 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 WalletInfoQuerySortThenBy on QueryBuilder { QueryBuilder thenByCachedBalanceSecondaryString() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedBalanceSecondaryString', Sort.asc); }); } QueryBuilder thenByCachedBalanceSecondaryStringDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedBalanceSecondaryString', Sort.desc); }); } QueryBuilder thenByCachedBalanceString() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedBalanceString', Sort.asc); }); } QueryBuilder thenByCachedBalanceStringDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedBalanceString', Sort.desc); }); } QueryBuilder thenByCachedBalanceTertiaryString() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedBalanceTertiaryString', Sort.asc); }); } QueryBuilder thenByCachedBalanceTertiaryStringDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedBalanceTertiaryString', Sort.desc); }); } QueryBuilder thenByCachedChainHeight() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedChainHeight', Sort.asc); }); } QueryBuilder thenByCachedChainHeightDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedChainHeight', Sort.desc); }); } QueryBuilder thenByCachedReceivingAddress() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedReceivingAddress', Sort.asc); }); } QueryBuilder thenByCachedReceivingAddressDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedReceivingAddress', Sort.desc); }); } QueryBuilder thenByCoinName() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'coinName', Sort.asc); }); } QueryBuilder thenByCoinNameDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'coinName', Sort.desc); }); } QueryBuilder thenByFavouriteOrderIndex() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'favouriteOrderIndex', Sort.asc); }); } QueryBuilder thenByFavouriteOrderIndexDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'favouriteOrderIndex', Sort.desc); }); } 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 thenByIsFavourite() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isFavourite', Sort.asc); }); } QueryBuilder thenByIsFavouriteDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isFavourite', Sort.desc); }); } QueryBuilder thenByMainAddressType() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'mainAddressType', Sort.asc); }); } QueryBuilder thenByMainAddressTypeDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'mainAddressType', Sort.desc); }); } QueryBuilder thenByName() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'name', Sort.asc); }); } QueryBuilder thenByNameDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'name', Sort.desc); }); } QueryBuilder thenByOtherDataJsonString() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'otherDataJsonString', Sort.asc); }); } QueryBuilder thenByOtherDataJsonStringDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'otherDataJsonString', Sort.desc); }); } QueryBuilder thenByRestoreHeight() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'restoreHeight', Sort.asc); }); } QueryBuilder thenByRestoreHeightDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'restoreHeight', 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 WalletInfoQueryWhereDistinct on QueryBuilder { QueryBuilder distinctByCachedBalanceSecondaryString({bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'cachedBalanceSecondaryString', caseSensitive: caseSensitive); }); } QueryBuilder distinctByCachedBalanceString( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'cachedBalanceString', caseSensitive: caseSensitive); }); } QueryBuilder distinctByCachedBalanceTertiaryString({bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'cachedBalanceTertiaryString', caseSensitive: caseSensitive); }); } QueryBuilder distinctByCachedChainHeight() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'cachedChainHeight'); }); } QueryBuilder distinctByCachedReceivingAddress({bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'cachedReceivingAddress', caseSensitive: caseSensitive); }); } QueryBuilder distinctByCoinName( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'coinName', caseSensitive: caseSensitive); }); } QueryBuilder distinctByFavouriteOrderIndex() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'favouriteOrderIndex'); }); } QueryBuilder distinctByIsFavourite() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'isFavourite'); }); } QueryBuilder distinctByMainAddressType() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'mainAddressType'); }); } QueryBuilder distinctByName( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'name', caseSensitive: caseSensitive); }); } QueryBuilder distinctByOtherDataJsonString( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'otherDataJsonString', caseSensitive: caseSensitive); }); } QueryBuilder distinctByRestoreHeight() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'restoreHeight'); }); } QueryBuilder distinctByTokenContractAddresses() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'tokenContractAddresses'); }); } QueryBuilder distinctByWalletId( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'walletId', caseSensitive: caseSensitive); }); } } extension WalletInfoQueryProperty on QueryBuilder { QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'id'); }); } QueryBuilder cachedBalanceSecondaryStringProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'cachedBalanceSecondaryString'); }); } QueryBuilder cachedBalanceStringProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'cachedBalanceString'); }); } QueryBuilder cachedBalanceTertiaryStringProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'cachedBalanceTertiaryString'); }); } QueryBuilder cachedChainHeightProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'cachedChainHeight'); }); } QueryBuilder cachedReceivingAddressProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'cachedReceivingAddress'); }); } QueryBuilder coinNameProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'coinName'); }); } QueryBuilder favouriteOrderIndexProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'favouriteOrderIndex'); }); } QueryBuilder isFavouriteProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'isFavourite'); }); } QueryBuilder mainAddressTypeProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'mainAddressType'); }); } QueryBuilder nameProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'name'); }); } QueryBuilder otherDataJsonStringProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'otherDataJsonString'); }); } QueryBuilder restoreHeightProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'restoreHeight'); }); } QueryBuilder, QQueryOperations> tokenContractAddressesProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'tokenContractAddresses'); }); } QueryBuilder walletIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'walletId'); }); } }