// GENERATED CODE - DO NOT MODIFY BY HAND part of 'pair.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 GetPairCollection on Isar { IsarCollection get pairs => this.collection(); } const PairSchema = CollectionSchema( name: r'Pair', id: -3124465371488267306, properties: { r'exchangeName': PropertySchema( id: 0, name: r'exchangeName', type: IsarType.string, ), r'from': PropertySchema( id: 1, name: r'from', type: IsarType.string, ), r'hashCode': PropertySchema( id: 2, name: r'hashCode', type: IsarType.long, ), r'rateType': PropertySchema( id: 3, name: r'rateType', type: IsarType.byte, enumMap: _PairrateTypeEnumValueMap, ), r'to': PropertySchema( id: 4, name: r'to', type: IsarType.string, ) }, estimateSize: _pairEstimateSize, serialize: _pairSerialize, deserialize: _pairDeserialize, deserializeProp: _pairDeserializeProp, idName: r'id', indexes: { r'exchangeName': IndexSchema( id: 3599278165711581955, name: r'exchangeName', unique: false, replace: false, properties: [ IndexPropertySchema( name: r'exchangeName', type: IndexType.hash, caseSensitive: true, ) ], ), r'from_exchangeName_to': IndexSchema( id: 817716734160134079, name: r'from_exchangeName_to', unique: false, replace: false, properties: [ IndexPropertySchema( name: r'from', type: IndexType.hash, caseSensitive: true, ), IndexPropertySchema( name: r'exchangeName', type: IndexType.hash, caseSensitive: true, ), IndexPropertySchema( name: r'to', type: IndexType.hash, caseSensitive: true, ) ], ) }, links: {}, embeddedSchemas: {}, getId: _pairGetId, getLinks: _pairGetLinks, attach: _pairAttach, version: '3.1.8', ); int _pairEstimateSize( Pair object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; bytesCount += 3 + object.exchangeName.length * 3; bytesCount += 3 + object.from.length * 3; bytesCount += 3 + object.to.length * 3; return bytesCount; } void _pairSerialize( Pair object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeString(offsets[0], object.exchangeName); writer.writeString(offsets[1], object.from); writer.writeLong(offsets[2], object.hashCode); writer.writeByte(offsets[3], object.rateType.index); writer.writeString(offsets[4], object.to); } Pair _pairDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = Pair( exchangeName: reader.readString(offsets[0]), from: reader.readString(offsets[1]), rateType: _PairrateTypeValueEnumMap[reader.readByteOrNull(offsets[3])] ?? SupportedRateType.fixed, to: reader.readString(offsets[4]), ); object.id = id; return object; } P _pairDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readString(offset)) as P; case 1: return (reader.readString(offset)) as P; case 2: return (reader.readLong(offset)) as P; case 3: return (_PairrateTypeValueEnumMap[reader.readByteOrNull(offset)] ?? SupportedRateType.fixed) as P; case 4: return (reader.readString(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } const _PairrateTypeEnumValueMap = { 'fixed': 0, 'estimated': 1, 'both': 2, }; const _PairrateTypeValueEnumMap = { 0: SupportedRateType.fixed, 1: SupportedRateType.estimated, 2: SupportedRateType.both, }; Id _pairGetId(Pair object) { return object.id ?? Isar.autoIncrement; } List> _pairGetLinks(Pair object) { return []; } void _pairAttach(IsarCollection col, Id id, Pair object) { object.id = id; } extension PairQueryWhereSort on QueryBuilder { QueryBuilder anyId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension PairQueryWhere 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 exchangeNameEqualTo( String exchangeName) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'exchangeName', value: [exchangeName], )); }); } QueryBuilder exchangeNameNotEqualTo( String exchangeName) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'exchangeName', lower: [], upper: [exchangeName], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'exchangeName', lower: [exchangeName], includeLower: false, upper: [], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'exchangeName', lower: [exchangeName], includeLower: false, upper: [], )) .addWhereClause(IndexWhereClause.between( indexName: r'exchangeName', lower: [], upper: [exchangeName], includeUpper: false, )); } }); } QueryBuilder fromEqualToAnyExchangeNameTo( String from) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'from_exchangeName_to', value: [from], )); }); } QueryBuilder fromNotEqualToAnyExchangeNameTo( String from) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'from_exchangeName_to', lower: [], upper: [from], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'from_exchangeName_to', lower: [from], includeLower: false, upper: [], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'from_exchangeName_to', lower: [from], includeLower: false, upper: [], )) .addWhereClause(IndexWhereClause.between( indexName: r'from_exchangeName_to', lower: [], upper: [from], includeUpper: false, )); } }); } QueryBuilder fromExchangeNameEqualToAnyTo( String from, String exchangeName) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'from_exchangeName_to', value: [from, exchangeName], )); }); } QueryBuilder fromEqualToExchangeNameNotEqualToAnyTo(String from, String exchangeName) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'from_exchangeName_to', lower: [from], upper: [from, exchangeName], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'from_exchangeName_to', lower: [from, exchangeName], includeLower: false, upper: [from], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'from_exchangeName_to', lower: [from, exchangeName], includeLower: false, upper: [from], )) .addWhereClause(IndexWhereClause.between( indexName: r'from_exchangeName_to', lower: [from], upper: [from, exchangeName], includeUpper: false, )); } }); } QueryBuilder fromExchangeNameToEqualTo( String from, String exchangeName, String to) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'from_exchangeName_to', value: [from, exchangeName, to], )); }); } QueryBuilder fromExchangeNameEqualToToNotEqualTo( String from, String exchangeName, String to) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'from_exchangeName_to', lower: [from, exchangeName], upper: [from, exchangeName, to], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'from_exchangeName_to', lower: [from, exchangeName, to], includeLower: false, upper: [from, exchangeName], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'from_exchangeName_to', lower: [from, exchangeName, to], includeLower: false, upper: [from, exchangeName], )) .addWhereClause(IndexWhereClause.between( indexName: r'from_exchangeName_to', lower: [from, exchangeName], upper: [from, exchangeName, to], includeUpper: false, )); } }); } } extension PairQueryFilter on QueryBuilder { QueryBuilder exchangeNameEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'exchangeName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder exchangeNameGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'exchangeName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder exchangeNameLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'exchangeName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder exchangeNameBetween( 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'exchangeName', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder exchangeNameStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'exchangeName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder exchangeNameEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'exchangeName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder exchangeNameContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'exchangeName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder exchangeNameMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'exchangeName', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder exchangeNameIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'exchangeName', value: '', )); }); } QueryBuilder exchangeNameIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'exchangeName', value: '', )); }); } QueryBuilder fromEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'from', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder fromGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'from', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder fromLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'from', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder fromBetween( 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'from', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder fromStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'from', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder fromEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'from', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder fromContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'from', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder fromMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'from', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder fromIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'from', value: '', )); }); } QueryBuilder fromIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'from', value: '', )); }); } QueryBuilder hashCodeEqualTo(int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'hashCode', value: value, )); }); } QueryBuilder hashCodeGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'hashCode', value: value, )); }); } QueryBuilder hashCodeLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'hashCode', value: value, )); }); } QueryBuilder hashCodeBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'hashCode', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder idIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'id', )); }); } QueryBuilder idIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'id', )); }); } 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 rateTypeEqualTo( SupportedRateType value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'rateType', value: value, )); }); } QueryBuilder rateTypeGreaterThan( SupportedRateType value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'rateType', value: value, )); }); } QueryBuilder rateTypeLessThan( SupportedRateType value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'rateType', value: value, )); }); } QueryBuilder rateTypeBetween( SupportedRateType lower, SupportedRateType upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'rateType', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder toEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'to', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder toGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'to', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder toLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'to', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder toBetween( 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'to', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder toStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'to', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder toEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'to', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder toContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'to', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder toMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'to', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder toIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'to', value: '', )); }); } QueryBuilder toIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'to', value: '', )); }); } } extension PairQueryObject on QueryBuilder {} extension PairQueryLinks on QueryBuilder {} extension PairQuerySortBy on QueryBuilder { QueryBuilder sortByExchangeName() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'exchangeName', Sort.asc); }); } QueryBuilder sortByExchangeNameDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'exchangeName', Sort.desc); }); } QueryBuilder sortByFrom() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'from', Sort.asc); }); } QueryBuilder sortByFromDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'from', Sort.desc); }); } QueryBuilder sortByHashCode() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'hashCode', Sort.asc); }); } QueryBuilder sortByHashCodeDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'hashCode', Sort.desc); }); } QueryBuilder sortByRateType() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'rateType', Sort.asc); }); } QueryBuilder sortByRateTypeDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'rateType', Sort.desc); }); } QueryBuilder sortByTo() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'to', Sort.asc); }); } QueryBuilder sortByToDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'to', Sort.desc); }); } } extension PairQuerySortThenBy on QueryBuilder { QueryBuilder thenByExchangeName() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'exchangeName', Sort.asc); }); } QueryBuilder thenByExchangeNameDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'exchangeName', Sort.desc); }); } QueryBuilder thenByFrom() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'from', Sort.asc); }); } QueryBuilder thenByFromDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'from', Sort.desc); }); } QueryBuilder thenByHashCode() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'hashCode', Sort.asc); }); } QueryBuilder thenByHashCodeDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'hashCode', 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 thenByRateType() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'rateType', Sort.asc); }); } QueryBuilder thenByRateTypeDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'rateType', Sort.desc); }); } QueryBuilder thenByTo() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'to', Sort.asc); }); } QueryBuilder thenByToDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'to', Sort.desc); }); } } extension PairQueryWhereDistinct on QueryBuilder { QueryBuilder distinctByExchangeName( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'exchangeName', caseSensitive: caseSensitive); }); } QueryBuilder distinctByFrom( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'from', caseSensitive: caseSensitive); }); } QueryBuilder distinctByHashCode() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'hashCode'); }); } QueryBuilder distinctByRateType() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'rateType'); }); } QueryBuilder distinctByTo( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'to', caseSensitive: caseSensitive); }); } } extension PairQueryProperty on QueryBuilder { QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'id'); }); } QueryBuilder exchangeNameProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'exchangeName'); }); } QueryBuilder fromProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'from'); }); } QueryBuilder hashCodeProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'hashCode'); }); } QueryBuilder rateTypeProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'rateType'); }); } QueryBuilder toProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'to'); }); } }