// GENERATED CODE - DO NOT MODIFY BY HAND part of 'store.entity.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 GetStoreValueCollection on Isar { IsarCollection get storeValues => this.collection(); } const StoreValueSchema = CollectionSchema( name: r'StoreValue', id: 902899285492123510, properties: { r'intValue': PropertySchema( id: 0, name: r'intValue', type: IsarType.long, ), r'strValue': PropertySchema( id: 1, name: r'strValue', type: IsarType.string, ) }, estimateSize: _storeValueEstimateSize, serialize: _storeValueSerialize, deserialize: _storeValueDeserialize, deserializeProp: _storeValueDeserializeProp, idName: r'id', indexes: {}, links: {}, embeddedSchemas: {}, getId: _storeValueGetId, getLinks: _storeValueGetLinks, attach: _storeValueAttach, version: '3.1.0+1', ); int _storeValueEstimateSize( StoreValue object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; { final value = object.strValue; if (value != null) { bytesCount += 3 + value.length * 3; } } return bytesCount; } void _storeValueSerialize( StoreValue object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeLong(offsets[0], object.intValue); writer.writeString(offsets[1], object.strValue); } StoreValue _storeValueDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = StoreValue( id, intValue: reader.readLongOrNull(offsets[0]), strValue: reader.readStringOrNull(offsets[1]), ); return object; } P _storeValueDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readLongOrNull(offset)) as P; case 1: return (reader.readStringOrNull(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } Id _storeValueGetId(StoreValue object) { return object.id; } List> _storeValueGetLinks(StoreValue object) { return []; } void _storeValueAttach(IsarCollection col, Id id, StoreValue object) { object.id = id; } extension StoreValueQueryWhereSort on QueryBuilder { QueryBuilder anyId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension StoreValueQueryWhere 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, )); }); } } extension StoreValueQueryFilter 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 intValueIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'intValue', )); }); } QueryBuilder intValueIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'intValue', )); }); } QueryBuilder intValueEqualTo( int? value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'intValue', value: value, )); }); } QueryBuilder intValueGreaterThan( int? value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'intValue', value: value, )); }); } QueryBuilder intValueLessThan( int? value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'intValue', value: value, )); }); } QueryBuilder intValueBetween( int? lower, int? upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'intValue', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder strValueIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'strValue', )); }); } QueryBuilder strValueIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'strValue', )); }); } QueryBuilder strValueEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'strValue', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder strValueGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'strValue', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder strValueLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'strValue', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder strValueBetween( 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'strValue', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder strValueStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'strValue', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder strValueEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'strValue', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder strValueContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'strValue', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder strValueMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'strValue', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder strValueIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'strValue', value: '', )); }); } QueryBuilder strValueIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'strValue', value: '', )); }); } } extension StoreValueQueryObject on QueryBuilder {} extension StoreValueQueryLinks on QueryBuilder {} extension StoreValueQuerySortBy on QueryBuilder { QueryBuilder sortByIntValue() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'intValue', Sort.asc); }); } QueryBuilder sortByIntValueDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'intValue', Sort.desc); }); } QueryBuilder sortByStrValue() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'strValue', Sort.asc); }); } QueryBuilder sortByStrValueDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'strValue', Sort.desc); }); } } extension StoreValueQuerySortThenBy 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 thenByIntValue() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'intValue', Sort.asc); }); } QueryBuilder thenByIntValueDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'intValue', Sort.desc); }); } QueryBuilder thenByStrValue() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'strValue', Sort.asc); }); } QueryBuilder thenByStrValueDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'strValue', Sort.desc); }); } } extension StoreValueQueryWhereDistinct on QueryBuilder { QueryBuilder distinctByIntValue() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'intValue'); }); } QueryBuilder distinctByStrValue( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'strValue', caseSensitive: caseSensitive); }); } } extension StoreValueQueryProperty on QueryBuilder { QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'id'); }); } QueryBuilder intValueProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'intValue'); }); } QueryBuilder strValueProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'strValue'); }); } }