// GENERATED CODE - DO NOT MODIFY BY HAND part of 'settings.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 GetSettingsCollection on Isar { IsarCollection get settings => this.collection(); } const SettingsSchema = CollectionSchema( name: r'Settings', id: -8656046621518759136, properties: { r'isMusicEnabled': PropertySchema( id: 0, name: r'isMusicEnabled', type: IsarType.bool, ), r'isSoundEnabled': PropertySchema( id: 1, name: r'isSoundEnabled', type: IsarType.bool, ) }, estimateSize: _settingsEstimateSize, serialize: _settingsSerialize, deserialize: _settingsDeserialize, deserializeProp: _settingsDeserializeProp, idName: r'id', indexes: {}, links: {}, embeddedSchemas: {}, getId: _settingsGetId, getLinks: _settingsGetLinks, attach: _settingsAttach, version: '3.1.0+1', ); int _settingsEstimateSize( Settings object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; return bytesCount; } void _settingsSerialize( Settings object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeBool(offsets[0], object.isMusicEnabled); writer.writeBool(offsets[1], object.isSoundEnabled); } Settings _settingsDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = Settings( isMusicEnabled: reader.readBool(offsets[0]), isSoundEnabled: reader.readBool(offsets[1]), ); object.id = id; return object; } P _settingsDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readBool(offset)) as P; case 1: return (reader.readBool(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } Id _settingsGetId(Settings object) { return object.id; } List> _settingsGetLinks(Settings object) { return []; } void _settingsAttach(IsarCollection col, Id id, Settings object) { object.id = id; } extension SettingsQueryWhereSort on QueryBuilder { QueryBuilder anyId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension SettingsQueryWhere 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 SettingsQueryFilter 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 isMusicEnabledEqualTo( bool value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'isMusicEnabled', value: value, )); }); } QueryBuilder isSoundEnabledEqualTo( bool value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'isSoundEnabled', value: value, )); }); } } extension SettingsQueryObject on QueryBuilder {} extension SettingsQueryLinks on QueryBuilder {} extension SettingsQuerySortBy on QueryBuilder { QueryBuilder sortByIsMusicEnabled() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isMusicEnabled', Sort.asc); }); } QueryBuilder sortByIsMusicEnabledDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isMusicEnabled', Sort.desc); }); } QueryBuilder sortByIsSoundEnabled() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isSoundEnabled', Sort.asc); }); } QueryBuilder sortByIsSoundEnabledDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isSoundEnabled', Sort.desc); }); } } extension SettingsQuerySortThenBy 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 thenByIsMusicEnabled() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isMusicEnabled', Sort.asc); }); } QueryBuilder thenByIsMusicEnabledDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isMusicEnabled', Sort.desc); }); } QueryBuilder thenByIsSoundEnabled() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isSoundEnabled', Sort.asc); }); } QueryBuilder thenByIsSoundEnabledDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isSoundEnabled', Sort.desc); }); } } extension SettingsQueryWhereDistinct on QueryBuilder { QueryBuilder distinctByIsMusicEnabled() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'isMusicEnabled'); }); } QueryBuilder distinctByIsSoundEnabled() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'isSoundEnabled'); }); } } extension SettingsQueryProperty on QueryBuilder { QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'id'); }); } QueryBuilder isMusicEnabledProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'isMusicEnabled'); }); } QueryBuilder isSoundEnabledProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'isSoundEnabled'); }); } }