// GENERATED CODE - DO NOT MODIFY BY HAND part of 'token_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, always_specify_types extension GetTokenWalletInfoCollection on Isar { IsarCollection get tokenWalletInfo => this.collection(); } const TokenWalletInfoSchema = CollectionSchema( name: r'TokenWalletInfo', id: -2566407308847951136, properties: { r'cachedBalanceJsonString': PropertySchema( id: 0, name: r'cachedBalanceJsonString', type: IsarType.string, ), r'tokenAddress': PropertySchema( id: 1, name: r'tokenAddress', type: IsarType.string, ), r'tokenFractionDigits': PropertySchema( id: 2, name: r'tokenFractionDigits', type: IsarType.long, ), r'walletId': PropertySchema( id: 3, name: r'walletId', type: IsarType.string, ) }, estimateSize: _tokenWalletInfoEstimateSize, serialize: _tokenWalletInfoSerialize, deserialize: _tokenWalletInfoDeserialize, deserializeProp: _tokenWalletInfoDeserializeProp, idName: r'id', indexes: { r'walletId_tokenAddress': IndexSchema( id: -7747794843092592407, name: r'walletId_tokenAddress', unique: true, replace: false, properties: [ IndexPropertySchema( name: r'walletId', type: IndexType.hash, caseSensitive: true, ), IndexPropertySchema( name: r'tokenAddress', type: IndexType.hash, caseSensitive: true, ) ], ) }, links: {}, embeddedSchemas: {}, getId: _tokenWalletInfoGetId, getLinks: _tokenWalletInfoGetLinks, attach: _tokenWalletInfoAttach, version: '3.1.8', ); int _tokenWalletInfoEstimateSize( TokenWalletInfo object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; { final value = object.cachedBalanceJsonString; if (value != null) { bytesCount += 3 + value.length * 3; } } bytesCount += 3 + object.tokenAddress.length * 3; bytesCount += 3 + object.walletId.length * 3; return bytesCount; } void _tokenWalletInfoSerialize( TokenWalletInfo object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeString(offsets[0], object.cachedBalanceJsonString); writer.writeString(offsets[1], object.tokenAddress); writer.writeLong(offsets[2], object.tokenFractionDigits); writer.writeString(offsets[3], object.walletId); } TokenWalletInfo _tokenWalletInfoDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = TokenWalletInfo( cachedBalanceJsonString: reader.readStringOrNull(offsets[0]), tokenAddress: reader.readString(offsets[1]), tokenFractionDigits: reader.readLong(offsets[2]), walletId: reader.readString(offsets[3]), ); object.id = id; return object; } P _tokenWalletInfoDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readStringOrNull(offset)) as P; case 1: return (reader.readString(offset)) as P; case 2: return (reader.readLong(offset)) as P; case 3: return (reader.readString(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } Id _tokenWalletInfoGetId(TokenWalletInfo object) { return object.id; } List> _tokenWalletInfoGetLinks(TokenWalletInfo object) { return []; } void _tokenWalletInfoAttach( IsarCollection col, Id id, TokenWalletInfo object) { object.id = id; } extension TokenWalletInfoByIndex on IsarCollection { Future getByWalletIdTokenAddress( String walletId, String tokenAddress) { return getByIndex(r'walletId_tokenAddress', [walletId, tokenAddress]); } TokenWalletInfo? getByWalletIdTokenAddressSync( String walletId, String tokenAddress) { return getByIndexSync(r'walletId_tokenAddress', [walletId, tokenAddress]); } Future deleteByWalletIdTokenAddress( String walletId, String tokenAddress) { return deleteByIndex(r'walletId_tokenAddress', [walletId, tokenAddress]); } bool deleteByWalletIdTokenAddressSync(String walletId, String tokenAddress) { return deleteByIndexSync( r'walletId_tokenAddress', [walletId, tokenAddress]); } Future> getAllByWalletIdTokenAddress( List walletIdValues, List tokenAddressValues) { final len = walletIdValues.length; assert(tokenAddressValues.length == len, 'All index values must have the same length'); final values = >[]; for (var i = 0; i < len; i++) { values.add([walletIdValues[i], tokenAddressValues[i]]); } return getAllByIndex(r'walletId_tokenAddress', values); } List getAllByWalletIdTokenAddressSync( List walletIdValues, List tokenAddressValues) { final len = walletIdValues.length; assert(tokenAddressValues.length == len, 'All index values must have the same length'); final values = >[]; for (var i = 0; i < len; i++) { values.add([walletIdValues[i], tokenAddressValues[i]]); } return getAllByIndexSync(r'walletId_tokenAddress', values); } Future deleteAllByWalletIdTokenAddress( List walletIdValues, List tokenAddressValues) { final len = walletIdValues.length; assert(tokenAddressValues.length == len, 'All index values must have the same length'); final values = >[]; for (var i = 0; i < len; i++) { values.add([walletIdValues[i], tokenAddressValues[i]]); } return deleteAllByIndex(r'walletId_tokenAddress', values); } int deleteAllByWalletIdTokenAddressSync( List walletIdValues, List tokenAddressValues) { final len = walletIdValues.length; assert(tokenAddressValues.length == len, 'All index values must have the same length'); final values = >[]; for (var i = 0; i < len; i++) { values.add([walletIdValues[i], tokenAddressValues[i]]); } return deleteAllByIndexSync(r'walletId_tokenAddress', values); } Future putByWalletIdTokenAddress(TokenWalletInfo object) { return putByIndex(r'walletId_tokenAddress', object); } Id putByWalletIdTokenAddressSync(TokenWalletInfo object, {bool saveLinks = true}) { return putByIndexSync(r'walletId_tokenAddress', object, saveLinks: saveLinks); } Future> putAllByWalletIdTokenAddress(List objects) { return putAllByIndex(r'walletId_tokenAddress', objects); } List putAllByWalletIdTokenAddressSync(List objects, {bool saveLinks = true}) { return putAllByIndexSync(r'walletId_tokenAddress', objects, saveLinks: saveLinks); } } extension TokenWalletInfoQueryWhereSort on QueryBuilder { QueryBuilder anyId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension TokenWalletInfoQueryWhere 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 walletIdEqualToAnyTokenAddress(String walletId) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'walletId_tokenAddress', value: [walletId], )); }); } QueryBuilder walletIdNotEqualToAnyTokenAddress(String walletId) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'walletId_tokenAddress', lower: [], upper: [walletId], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'walletId_tokenAddress', lower: [walletId], includeLower: false, upper: [], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'walletId_tokenAddress', lower: [walletId], includeLower: false, upper: [], )) .addWhereClause(IndexWhereClause.between( indexName: r'walletId_tokenAddress', lower: [], upper: [walletId], includeUpper: false, )); } }); } QueryBuilder walletIdTokenAddressEqualTo(String walletId, String tokenAddress) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'walletId_tokenAddress', value: [walletId, tokenAddress], )); }); } QueryBuilder walletIdEqualToTokenAddressNotEqualTo( String walletId, String tokenAddress) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'walletId_tokenAddress', lower: [walletId], upper: [walletId, tokenAddress], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'walletId_tokenAddress', lower: [walletId, tokenAddress], includeLower: false, upper: [walletId], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'walletId_tokenAddress', lower: [walletId, tokenAddress], includeLower: false, upper: [walletId], )) .addWhereClause(IndexWhereClause.between( indexName: r'walletId_tokenAddress', lower: [walletId], upper: [walletId, tokenAddress], includeUpper: false, )); } }); } } extension TokenWalletInfoQueryFilter on QueryBuilder { QueryBuilder cachedBalanceJsonStringIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'cachedBalanceJsonString', )); }); } QueryBuilder cachedBalanceJsonStringIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'cachedBalanceJsonString', )); }); } QueryBuilder cachedBalanceJsonStringEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'cachedBalanceJsonString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceJsonStringGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'cachedBalanceJsonString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceJsonStringLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'cachedBalanceJsonString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceJsonStringBetween( 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'cachedBalanceJsonString', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceJsonStringStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'cachedBalanceJsonString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceJsonStringEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'cachedBalanceJsonString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceJsonStringContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'cachedBalanceJsonString', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceJsonStringMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'cachedBalanceJsonString', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder cachedBalanceJsonStringIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'cachedBalanceJsonString', value: '', )); }); } QueryBuilder cachedBalanceJsonStringIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'cachedBalanceJsonString', value: '', )); }); } 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 tokenAddressEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'tokenAddress', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tokenAddressGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'tokenAddress', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tokenAddressLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'tokenAddress', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tokenAddressBetween( 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'tokenAddress', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder tokenAddressStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'tokenAddress', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tokenAddressEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'tokenAddress', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tokenAddressContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'tokenAddress', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tokenAddressMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'tokenAddress', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder tokenAddressIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'tokenAddress', value: '', )); }); } QueryBuilder tokenAddressIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'tokenAddress', value: '', )); }); } QueryBuilder tokenFractionDigitsEqualTo(int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'tokenFractionDigits', value: value, )); }); } QueryBuilder tokenFractionDigitsGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'tokenFractionDigits', value: value, )); }); } QueryBuilder tokenFractionDigitsLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'tokenFractionDigits', value: value, )); }); } QueryBuilder tokenFractionDigitsBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'tokenFractionDigits', lower: lower, includeLower: includeLower, upper: upper, includeUpper: 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 TokenWalletInfoQueryObject on QueryBuilder {} extension TokenWalletInfoQueryLinks on QueryBuilder {} extension TokenWalletInfoQuerySortBy on QueryBuilder { QueryBuilder sortByCachedBalanceJsonString() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedBalanceJsonString', Sort.asc); }); } QueryBuilder sortByCachedBalanceJsonStringDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedBalanceJsonString', Sort.desc); }); } QueryBuilder sortByTokenAddress() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'tokenAddress', Sort.asc); }); } QueryBuilder sortByTokenAddressDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'tokenAddress', Sort.desc); }); } QueryBuilder sortByTokenFractionDigits() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'tokenFractionDigits', Sort.asc); }); } QueryBuilder sortByTokenFractionDigitsDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'tokenFractionDigits', 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 TokenWalletInfoQuerySortThenBy on QueryBuilder { QueryBuilder thenByCachedBalanceJsonString() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedBalanceJsonString', Sort.asc); }); } QueryBuilder thenByCachedBalanceJsonStringDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'cachedBalanceJsonString', 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 thenByTokenAddress() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'tokenAddress', Sort.asc); }); } QueryBuilder thenByTokenAddressDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'tokenAddress', Sort.desc); }); } QueryBuilder thenByTokenFractionDigits() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'tokenFractionDigits', Sort.asc); }); } QueryBuilder thenByTokenFractionDigitsDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'tokenFractionDigits', 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 TokenWalletInfoQueryWhereDistinct on QueryBuilder { QueryBuilder distinctByCachedBalanceJsonString({bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'cachedBalanceJsonString', caseSensitive: caseSensitive); }); } QueryBuilder distinctByTokenAddress({bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'tokenAddress', caseSensitive: caseSensitive); }); } QueryBuilder distinctByTokenFractionDigits() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'tokenFractionDigits'); }); } QueryBuilder distinctByWalletId( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'walletId', caseSensitive: caseSensitive); }); } } extension TokenWalletInfoQueryProperty on QueryBuilder { QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'id'); }); } QueryBuilder cachedBalanceJsonStringProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'cachedBalanceJsonString'); }); } QueryBuilder tokenAddressProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'tokenAddress'); }); } QueryBuilder tokenFractionDigitsProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'tokenFractionDigits'); }); } QueryBuilder walletIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'walletId'); }); } }