// GENERATED CODE - DO NOT MODIFY BY HAND part of 'frost_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 GetFrostWalletInfoCollection on Isar { IsarCollection get frostWalletInfo => this.collection(); } const FrostWalletInfoSchema = CollectionSchema( name: r'FrostWalletInfo', id: -4182879703273806681, properties: { r'knownSalts': PropertySchema( id: 0, name: r'knownSalts', type: IsarType.stringList, ), r'myName': PropertySchema( id: 1, name: r'myName', type: IsarType.string, ), r'participants': PropertySchema( id: 2, name: r'participants', type: IsarType.stringList, ), r'threshold': PropertySchema( id: 3, name: r'threshold', type: IsarType.long, ), r'walletId': PropertySchema( id: 4, name: r'walletId', type: IsarType.string, ) }, estimateSize: _frostWalletInfoEstimateSize, serialize: _frostWalletInfoSerialize, deserialize: _frostWalletInfoDeserialize, deserializeProp: _frostWalletInfoDeserializeProp, 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: _frostWalletInfoGetId, getLinks: _frostWalletInfoGetLinks, attach: _frostWalletInfoAttach, version: '3.1.8', ); int _frostWalletInfoEstimateSize( FrostWalletInfo object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; bytesCount += 3 + object.knownSalts.length * 3; { for (var i = 0; i < object.knownSalts.length; i++) { final value = object.knownSalts[i]; bytesCount += value.length * 3; } } bytesCount += 3 + object.myName.length * 3; bytesCount += 3 + object.participants.length * 3; { for (var i = 0; i < object.participants.length; i++) { final value = object.participants[i]; bytesCount += value.length * 3; } } bytesCount += 3 + object.walletId.length * 3; return bytesCount; } void _frostWalletInfoSerialize( FrostWalletInfo object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeStringList(offsets[0], object.knownSalts); writer.writeString(offsets[1], object.myName); writer.writeStringList(offsets[2], object.participants); writer.writeLong(offsets[3], object.threshold); writer.writeString(offsets[4], object.walletId); } FrostWalletInfo _frostWalletInfoDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = FrostWalletInfo( knownSalts: reader.readStringList(offsets[0]) ?? [], myName: reader.readString(offsets[1]), participants: reader.readStringList(offsets[2]) ?? [], threshold: reader.readLong(offsets[3]), walletId: reader.readString(offsets[4]), ); object.id = id; return object; } P _frostWalletInfoDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readStringList(offset) ?? []) as P; case 1: return (reader.readString(offset)) as P; case 2: return (reader.readStringList(offset) ?? []) as P; case 3: return (reader.readLong(offset)) as P; case 4: return (reader.readString(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } Id _frostWalletInfoGetId(FrostWalletInfo object) { return object.id; } List> _frostWalletInfoGetLinks(FrostWalletInfo object) { return []; } void _frostWalletInfoAttach( IsarCollection col, Id id, FrostWalletInfo object) { object.id = id; } extension FrostWalletInfoByIndex on IsarCollection { Future getByWalletId(String walletId) { return getByIndex(r'walletId', [walletId]); } FrostWalletInfo? 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(FrostWalletInfo object) { return putByIndex(r'walletId', object); } Id putByWalletIdSync(FrostWalletInfo 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 FrostWalletInfoQueryWhereSort on QueryBuilder { QueryBuilder anyId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension FrostWalletInfoQueryWhere 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 FrostWalletInfoQueryFilter 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 knownSaltsElementEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'knownSalts', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder knownSaltsElementGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'knownSalts', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder knownSaltsElementLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'knownSalts', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder knownSaltsElementBetween( 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'knownSalts', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder knownSaltsElementStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'knownSalts', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder knownSaltsElementEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'knownSalts', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder knownSaltsElementContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'knownSalts', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder knownSaltsElementMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'knownSalts', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder knownSaltsElementIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'knownSalts', value: '', )); }); } QueryBuilder knownSaltsElementIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'knownSalts', value: '', )); }); } QueryBuilder knownSaltsLengthEqualTo(int length) { return QueryBuilder.apply(this, (query) { return query.listLength( r'knownSalts', length, true, length, true, ); }); } QueryBuilder knownSaltsIsEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'knownSalts', 0, true, 0, true, ); }); } QueryBuilder knownSaltsIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'knownSalts', 0, false, 999999, true, ); }); } QueryBuilder knownSaltsLengthLessThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'knownSalts', 0, true, length, include, ); }); } QueryBuilder knownSaltsLengthGreaterThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'knownSalts', length, include, 999999, true, ); }); } QueryBuilder knownSaltsLengthBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'knownSalts', lower, includeLower, upper, includeUpper, ); }); } QueryBuilder myNameEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'myName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder myNameGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'myName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder myNameLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'myName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder myNameBetween( 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'myName', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder myNameStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'myName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder myNameEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'myName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder myNameContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'myName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder myNameMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'myName', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder myNameIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'myName', value: '', )); }); } QueryBuilder myNameIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'myName', value: '', )); }); } QueryBuilder participantsElementEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'participants', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder participantsElementGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'participants', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder participantsElementLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'participants', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder participantsElementBetween( 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'participants', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder participantsElementStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'participants', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder participantsElementEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'participants', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder participantsElementContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'participants', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder participantsElementMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'participants', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder participantsElementIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'participants', value: '', )); }); } QueryBuilder participantsElementIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'participants', value: '', )); }); } QueryBuilder participantsLengthEqualTo(int length) { return QueryBuilder.apply(this, (query) { return query.listLength( r'participants', length, true, length, true, ); }); } QueryBuilder participantsIsEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'participants', 0, true, 0, true, ); }); } QueryBuilder participantsIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'participants', 0, false, 999999, true, ); }); } QueryBuilder participantsLengthLessThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'participants', 0, true, length, include, ); }); } QueryBuilder participantsLengthGreaterThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'participants', length, include, 999999, true, ); }); } QueryBuilder participantsLengthBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'participants', lower, includeLower, upper, includeUpper, ); }); } QueryBuilder thresholdEqualTo(int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'threshold', value: value, )); }); } QueryBuilder thresholdGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'threshold', value: value, )); }); } QueryBuilder thresholdLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'threshold', value: value, )); }); } QueryBuilder thresholdBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'threshold', 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 FrostWalletInfoQueryObject on QueryBuilder {} extension FrostWalletInfoQueryLinks on QueryBuilder {} extension FrostWalletInfoQuerySortBy on QueryBuilder { QueryBuilder sortByMyName() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'myName', Sort.asc); }); } QueryBuilder sortByMyNameDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'myName', Sort.desc); }); } QueryBuilder sortByThreshold() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'threshold', Sort.asc); }); } QueryBuilder sortByThresholdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'threshold', 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 FrostWalletInfoQuerySortThenBy 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 thenByMyName() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'myName', Sort.asc); }); } QueryBuilder thenByMyNameDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'myName', Sort.desc); }); } QueryBuilder thenByThreshold() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'threshold', Sort.asc); }); } QueryBuilder thenByThresholdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'threshold', 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 FrostWalletInfoQueryWhereDistinct on QueryBuilder { QueryBuilder distinctByKnownSalts() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'knownSalts'); }); } QueryBuilder distinctByMyName( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'myName', caseSensitive: caseSensitive); }); } QueryBuilder distinctByParticipants() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'participants'); }); } QueryBuilder distinctByThreshold() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'threshold'); }); } QueryBuilder distinctByWalletId( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'walletId', caseSensitive: caseSensitive); }); } } extension FrostWalletInfoQueryProperty on QueryBuilder { QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'id'); }); } QueryBuilder, QQueryOperations> knownSaltsProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'knownSalts'); }); } QueryBuilder myNameProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'myName'); }); } QueryBuilder, QQueryOperations> participantsProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'participants'); }); } QueryBuilder thresholdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'threshold'); }); } QueryBuilder walletIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'walletId'); }); } }