// GENERATED CODE - DO NOT MODIFY BY HAND part of 'currency.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 GetCurrencyCollection on Isar { IsarCollection get currencies => this.collection(); } const CurrencySchema = CollectionSchema( name: r'Currency', id: 8290149502090171821, properties: { r'exchangeName': PropertySchema( id: 0, name: r'exchangeName', type: IsarType.string, ), r'externalId': PropertySchema( id: 1, name: r'externalId', type: IsarType.string, ), r'image': PropertySchema( id: 2, name: r'image', type: IsarType.string, ), r'isAvailable': PropertySchema( id: 3, name: r'isAvailable', type: IsarType.bool, ), r'isFiat': PropertySchema( id: 4, name: r'isFiat', type: IsarType.bool, ), r'isStackCoin': PropertySchema( id: 5, name: r'isStackCoin', type: IsarType.bool, ), r'name': PropertySchema( id: 6, name: r'name', type: IsarType.string, ), r'network': PropertySchema( id: 7, name: r'network', type: IsarType.string, ), r'rateType': PropertySchema( id: 8, name: r'rateType', type: IsarType.byte, enumMap: _CurrencyrateTypeEnumValueMap, ), r'ticker': PropertySchema( id: 9, name: r'ticker', type: IsarType.string, ) }, estimateSize: _currencyEstimateSize, serialize: _currencySerialize, deserialize: _currencyDeserialize, deserializeProp: _currencyDeserializeProp, 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'ticker_exchangeName_name': IndexSchema( id: 6345943517929964748, name: r'ticker_exchangeName_name', unique: false, replace: false, properties: [ IndexPropertySchema( name: r'ticker', type: IndexType.hash, caseSensitive: true, ), IndexPropertySchema( name: r'exchangeName', type: IndexType.hash, caseSensitive: true, ), IndexPropertySchema( name: r'name', type: IndexType.hash, caseSensitive: true, ) ], ), r'isStackCoin': IndexSchema( id: 1994111521912746776, name: r'isStackCoin', unique: false, replace: false, properties: [ IndexPropertySchema( name: r'isStackCoin', type: IndexType.value, caseSensitive: false, ) ], ) }, links: {}, embeddedSchemas: {}, getId: _currencyGetId, getLinks: _currencyGetLinks, attach: _currencyAttach, version: '3.0.5', ); int _currencyEstimateSize( Currency object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; bytesCount += 3 + object.exchangeName.length * 3; { final value = object.externalId; if (value != null) { bytesCount += 3 + value.length * 3; } } bytesCount += 3 + object.image.length * 3; bytesCount += 3 + object.name.length * 3; bytesCount += 3 + object.network.length * 3; bytesCount += 3 + object.ticker.length * 3; return bytesCount; } void _currencySerialize( Currency object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeString(offsets[0], object.exchangeName); writer.writeString(offsets[1], object.externalId); writer.writeString(offsets[2], object.image); writer.writeBool(offsets[3], object.isAvailable); writer.writeBool(offsets[4], object.isFiat); writer.writeBool(offsets[5], object.isStackCoin); writer.writeString(offsets[6], object.name); writer.writeString(offsets[7], object.network); writer.writeByte(offsets[8], object.rateType.index); writer.writeString(offsets[9], object.ticker); } Currency _currencyDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = Currency( exchangeName: reader.readString(offsets[0]), externalId: reader.readStringOrNull(offsets[1]), image: reader.readString(offsets[2]), isAvailable: reader.readBoolOrNull(offsets[3]), isFiat: reader.readBool(offsets[4]), isStackCoin: reader.readBool(offsets[5]), name: reader.readString(offsets[6]), network: reader.readString(offsets[7]), rateType: _CurrencyrateTypeValueEnumMap[reader.readByteOrNull(offsets[8])] ?? SupportedRateType.fixed, ticker: reader.readString(offsets[9]), ); object.id = id; return object; } P _currencyDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readString(offset)) as P; case 1: return (reader.readStringOrNull(offset)) as P; case 2: return (reader.readString(offset)) as P; case 3: return (reader.readBoolOrNull(offset)) as P; case 4: return (reader.readBool(offset)) as P; case 5: return (reader.readBool(offset)) as P; case 6: return (reader.readString(offset)) as P; case 7: return (reader.readString(offset)) as P; case 8: return (_CurrencyrateTypeValueEnumMap[reader.readByteOrNull(offset)] ?? SupportedRateType.fixed) as P; case 9: return (reader.readString(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } const _CurrencyrateTypeEnumValueMap = { 'fixed': 0, 'estimated': 1, 'both': 2, }; const _CurrencyrateTypeValueEnumMap = { 0: SupportedRateType.fixed, 1: SupportedRateType.estimated, 2: SupportedRateType.both, }; Id _currencyGetId(Currency object) { return object.id ?? Isar.autoIncrement; } List> _currencyGetLinks(Currency object) { return []; } void _currencyAttach(IsarCollection col, Id id, Currency object) { object.id = id; } extension CurrencyQueryWhereSort on QueryBuilder { QueryBuilder anyId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } QueryBuilder anyIsStackCoin() { return QueryBuilder.apply(this, (query) { return query.addWhereClause( const IndexWhereClause.any(indexName: r'isStackCoin'), ); }); } } extension CurrencyQueryWhere 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 tickerEqualToAnyExchangeNameName(String ticker) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'ticker_exchangeName_name', value: [ticker], )); }); } QueryBuilder tickerNotEqualToAnyExchangeNameName(String ticker) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'ticker_exchangeName_name', lower: [], upper: [ticker], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'ticker_exchangeName_name', lower: [ticker], includeLower: false, upper: [], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'ticker_exchangeName_name', lower: [ticker], includeLower: false, upper: [], )) .addWhereClause(IndexWhereClause.between( indexName: r'ticker_exchangeName_name', lower: [], upper: [ticker], includeUpper: false, )); } }); } QueryBuilder tickerExchangeNameEqualToAnyName(String ticker, String exchangeName) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'ticker_exchangeName_name', value: [ticker, exchangeName], )); }); } QueryBuilder tickerEqualToExchangeNameNotEqualToAnyName( String ticker, String exchangeName) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'ticker_exchangeName_name', lower: [ticker], upper: [ticker, exchangeName], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'ticker_exchangeName_name', lower: [ticker, exchangeName], includeLower: false, upper: [ticker], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'ticker_exchangeName_name', lower: [ticker, exchangeName], includeLower: false, upper: [ticker], )) .addWhereClause(IndexWhereClause.between( indexName: r'ticker_exchangeName_name', lower: [ticker], upper: [ticker, exchangeName], includeUpper: false, )); } }); } QueryBuilder tickerExchangeNameNameEqualTo( String ticker, String exchangeName, String name) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'ticker_exchangeName_name', value: [ticker, exchangeName, name], )); }); } QueryBuilder tickerExchangeNameEqualToNameNotEqualTo( String ticker, String exchangeName, String name) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'ticker_exchangeName_name', lower: [ticker, exchangeName], upper: [ticker, exchangeName, name], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'ticker_exchangeName_name', lower: [ticker, exchangeName, name], includeLower: false, upper: [ticker, exchangeName], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'ticker_exchangeName_name', lower: [ticker, exchangeName, name], includeLower: false, upper: [ticker, exchangeName], )) .addWhereClause(IndexWhereClause.between( indexName: r'ticker_exchangeName_name', lower: [ticker, exchangeName], upper: [ticker, exchangeName, name], includeUpper: false, )); } }); } QueryBuilder isStackCoinEqualTo( bool isStackCoin) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'isStackCoin', value: [isStackCoin], )); }); } QueryBuilder isStackCoinNotEqualTo( bool isStackCoin) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'isStackCoin', lower: [], upper: [isStackCoin], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'isStackCoin', lower: [isStackCoin], includeLower: false, upper: [], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'isStackCoin', lower: [isStackCoin], includeLower: false, upper: [], )) .addWhereClause(IndexWhereClause.between( indexName: r'isStackCoin', lower: [], upper: [isStackCoin], includeUpper: false, )); } }); } } extension CurrencyQueryFilter 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 externalIdIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'externalId', )); }); } QueryBuilder externalIdIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'externalId', )); }); } QueryBuilder externalIdEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'externalId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder externalIdGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'externalId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder externalIdLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'externalId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder externalIdBetween( 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'externalId', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder externalIdStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'externalId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder externalIdEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'externalId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder externalIdContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'externalId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder externalIdMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'externalId', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder externalIdIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'externalId', value: '', )); }); } QueryBuilder externalIdIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'externalId', value: '', )); }); } 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 imageEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'image', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder imageGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'image', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder imageLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'image', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder imageBetween( 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'image', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder imageStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'image', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder imageEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'image', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder imageContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'image', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder imageMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'image', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder imageIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'image', value: '', )); }); } QueryBuilder imageIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'image', value: '', )); }); } QueryBuilder isAvailableIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'isAvailable', )); }); } QueryBuilder isAvailableIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'isAvailable', )); }); } QueryBuilder isAvailableEqualTo( bool? value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'isAvailable', value: value, )); }); } QueryBuilder isFiatEqualTo( bool value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'isFiat', value: value, )); }); } QueryBuilder isStackCoinEqualTo( bool value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'isStackCoin', value: value, )); }); } 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 networkEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'network', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder networkGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'network', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder networkLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'network', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder networkBetween( 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'network', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder networkStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'network', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder networkEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'network', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder networkContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'network', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder networkMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'network', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder networkIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'network', value: '', )); }); } QueryBuilder networkIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'network', value: '', )); }); } 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 tickerEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'ticker', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tickerGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'ticker', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tickerLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'ticker', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tickerBetween( 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'ticker', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder tickerStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'ticker', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tickerEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'ticker', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tickerContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'ticker', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder tickerMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'ticker', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder tickerIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'ticker', value: '', )); }); } QueryBuilder tickerIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'ticker', value: '', )); }); } } extension CurrencyQueryObject on QueryBuilder {} extension CurrencyQueryLinks on QueryBuilder {} extension CurrencyQuerySortBy 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 sortByExternalId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'externalId', Sort.asc); }); } QueryBuilder sortByExternalIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'externalId', Sort.desc); }); } QueryBuilder sortByImage() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'image', Sort.asc); }); } QueryBuilder sortByImageDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'image', Sort.desc); }); } QueryBuilder sortByIsAvailable() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isAvailable', Sort.asc); }); } QueryBuilder sortByIsAvailableDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isAvailable', Sort.desc); }); } QueryBuilder sortByIsFiat() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isFiat', Sort.asc); }); } QueryBuilder sortByIsFiatDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isFiat', Sort.desc); }); } QueryBuilder sortByIsStackCoin() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isStackCoin', Sort.asc); }); } QueryBuilder sortByIsStackCoinDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isStackCoin', 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 sortByNetwork() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'network', Sort.asc); }); } QueryBuilder sortByNetworkDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'network', 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 sortByTicker() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'ticker', Sort.asc); }); } QueryBuilder sortByTickerDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'ticker', Sort.desc); }); } } extension CurrencyQuerySortThenBy 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 thenByExternalId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'externalId', Sort.asc); }); } QueryBuilder thenByExternalIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'externalId', 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 thenByImage() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'image', Sort.asc); }); } QueryBuilder thenByImageDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'image', Sort.desc); }); } QueryBuilder thenByIsAvailable() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isAvailable', Sort.asc); }); } QueryBuilder thenByIsAvailableDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isAvailable', Sort.desc); }); } QueryBuilder thenByIsFiat() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isFiat', Sort.asc); }); } QueryBuilder thenByIsFiatDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isFiat', Sort.desc); }); } QueryBuilder thenByIsStackCoin() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isStackCoin', Sort.asc); }); } QueryBuilder thenByIsStackCoinDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isStackCoin', 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 thenByNetwork() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'network', Sort.asc); }); } QueryBuilder thenByNetworkDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'network', 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 thenByTicker() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'ticker', Sort.asc); }); } QueryBuilder thenByTickerDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'ticker', Sort.desc); }); } } extension CurrencyQueryWhereDistinct on QueryBuilder { QueryBuilder distinctByExchangeName( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'exchangeName', caseSensitive: caseSensitive); }); } QueryBuilder distinctByExternalId( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'externalId', caseSensitive: caseSensitive); }); } QueryBuilder distinctByImage( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'image', caseSensitive: caseSensitive); }); } QueryBuilder distinctByIsAvailable() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'isAvailable'); }); } QueryBuilder distinctByIsFiat() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'isFiat'); }); } QueryBuilder distinctByIsStackCoin() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'isStackCoin'); }); } QueryBuilder distinctByName( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'name', caseSensitive: caseSensitive); }); } QueryBuilder distinctByNetwork( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'network', caseSensitive: caseSensitive); }); } QueryBuilder distinctByRateType() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'rateType'); }); } QueryBuilder distinctByTicker( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'ticker', caseSensitive: caseSensitive); }); } } extension CurrencyQueryProperty 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 externalIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'externalId'); }); } QueryBuilder imageProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'image'); }); } QueryBuilder isAvailableProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'isAvailable'); }); } QueryBuilder isFiatProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'isFiat'); }); } QueryBuilder isStackCoinProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'isStackCoin'); }); } QueryBuilder nameProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'name'); }); } QueryBuilder networkProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'network'); }); } QueryBuilder rateTypeProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'rateType'); }); } QueryBuilder tickerProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'ticker'); }); } }