// GENERATED CODE - DO NOT MODIFY BY HAND part of 'backup_album.model.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 GetBackupAlbumCollection on Isar { IsarCollection get backupAlbums => this.collection(); } const BackupAlbumSchema = CollectionSchema( name: r'BackupAlbum', id: 8308487201128361847, properties: { r'id': PropertySchema( id: 0, name: r'id', type: IsarType.string, ), r'lastBackup': PropertySchema( id: 1, name: r'lastBackup', type: IsarType.dateTime, ), r'selection': PropertySchema( id: 2, name: r'selection', type: IsarType.byte, enumMap: _BackupAlbumselectionEnumValueMap, ) }, estimateSize: _backupAlbumEstimateSize, serialize: _backupAlbumSerialize, deserialize: _backupAlbumDeserialize, deserializeProp: _backupAlbumDeserializeProp, idName: r'isarId', indexes: {}, links: {}, embeddedSchemas: {}, getId: _backupAlbumGetId, getLinks: _backupAlbumGetLinks, attach: _backupAlbumAttach, version: '3.1.0+1', ); int _backupAlbumEstimateSize( BackupAlbum object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; bytesCount += 3 + object.id.length * 3; return bytesCount; } void _backupAlbumSerialize( BackupAlbum object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeString(offsets[0], object.id); writer.writeDateTime(offsets[1], object.lastBackup); writer.writeByte(offsets[2], object.selection.index); } BackupAlbum _backupAlbumDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = BackupAlbum( reader.readString(offsets[0]), reader.readDateTime(offsets[1]), _BackupAlbumselectionValueEnumMap[reader.readByteOrNull(offsets[2])] ?? BackupSelection.none, ); return object; } P _backupAlbumDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readString(offset)) as P; case 1: return (reader.readDateTime(offset)) as P; case 2: return (_BackupAlbumselectionValueEnumMap[ reader.readByteOrNull(offset)] ?? BackupSelection.none) as P; default: throw IsarError('Unknown property with id $propertyId'); } } const _BackupAlbumselectionEnumValueMap = { 'none': 0, 'select': 1, 'exclude': 2, }; const _BackupAlbumselectionValueEnumMap = { 0: BackupSelection.none, 1: BackupSelection.select, 2: BackupSelection.exclude, }; Id _backupAlbumGetId(BackupAlbum object) { return object.isarId; } List> _backupAlbumGetLinks(BackupAlbum object) { return []; } void _backupAlbumAttach( IsarCollection col, Id id, BackupAlbum object) {} extension BackupAlbumQueryWhereSort on QueryBuilder { QueryBuilder anyIsarId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension BackupAlbumQueryWhere on QueryBuilder { QueryBuilder isarIdEqualTo( Id isarId) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IdWhereClause.between( lower: isarId, upper: isarId, )); }); } QueryBuilder isarIdNotEqualTo( Id isarId) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause( IdWhereClause.lessThan(upper: isarId, includeUpper: false), ) .addWhereClause( IdWhereClause.greaterThan(lower: isarId, includeLower: false), ); } else { return query .addWhereClause( IdWhereClause.greaterThan(lower: isarId, includeLower: false), ) .addWhereClause( IdWhereClause.lessThan(upper: isarId, includeUpper: false), ); } }); } QueryBuilder isarIdGreaterThan( Id isarId, {bool include = false}) { return QueryBuilder.apply(this, (query) { return query.addWhereClause( IdWhereClause.greaterThan(lower: isarId, includeLower: include), ); }); } QueryBuilder isarIdLessThan( Id isarId, {bool include = false}) { return QueryBuilder.apply(this, (query) { return query.addWhereClause( IdWhereClause.lessThan(upper: isarId, includeUpper: include), ); }); } QueryBuilder isarIdBetween( Id lowerIsarId, Id upperIsarId, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IdWhereClause.between( lower: lowerIsarId, includeLower: includeLower, upper: upperIsarId, includeUpper: includeUpper, )); }); } } extension BackupAlbumQueryFilter on QueryBuilder { QueryBuilder idEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idBetween( 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'id', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder idStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'id', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder idIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'id', value: '', )); }); } QueryBuilder idIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'id', value: '', )); }); } QueryBuilder isarIdEqualTo( Id value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'isarId', value: value, )); }); } QueryBuilder isarIdGreaterThan( Id value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'isarId', value: value, )); }); } QueryBuilder isarIdLessThan( Id value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'isarId', value: value, )); }); } QueryBuilder isarIdBetween( Id lower, Id upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'isarId', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder lastBackupEqualTo(DateTime value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'lastBackup', value: value, )); }); } QueryBuilder lastBackupGreaterThan( DateTime value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'lastBackup', value: value, )); }); } QueryBuilder lastBackupLessThan( DateTime value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'lastBackup', value: value, )); }); } QueryBuilder lastBackupBetween( DateTime lower, DateTime upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'lastBackup', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder selectionEqualTo(BackupSelection value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'selection', value: value, )); }); } QueryBuilder selectionGreaterThan( BackupSelection value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'selection', value: value, )); }); } QueryBuilder selectionLessThan( BackupSelection value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'selection', value: value, )); }); } QueryBuilder selectionBetween( BackupSelection lower, BackupSelection upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'selection', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } } extension BackupAlbumQueryObject on QueryBuilder {} extension BackupAlbumQueryLinks on QueryBuilder {} extension BackupAlbumQuerySortBy on QueryBuilder { QueryBuilder sortById() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'id', Sort.asc); }); } QueryBuilder sortByIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'id', Sort.desc); }); } QueryBuilder sortByLastBackup() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'lastBackup', Sort.asc); }); } QueryBuilder sortByLastBackupDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'lastBackup', Sort.desc); }); } QueryBuilder sortBySelection() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'selection', Sort.asc); }); } QueryBuilder sortBySelectionDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'selection', Sort.desc); }); } } extension BackupAlbumQuerySortThenBy 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 thenByIsarId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isarId', Sort.asc); }); } QueryBuilder thenByIsarIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isarId', Sort.desc); }); } QueryBuilder thenByLastBackup() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'lastBackup', Sort.asc); }); } QueryBuilder thenByLastBackupDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'lastBackup', Sort.desc); }); } QueryBuilder thenBySelection() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'selection', Sort.asc); }); } QueryBuilder thenBySelectionDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'selection', Sort.desc); }); } } extension BackupAlbumQueryWhereDistinct on QueryBuilder { QueryBuilder distinctById( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'id', caseSensitive: caseSensitive); }); } QueryBuilder distinctByLastBackup() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'lastBackup'); }); } QueryBuilder distinctBySelection() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'selection'); }); } } extension BackupAlbumQueryProperty on QueryBuilder { QueryBuilder isarIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'isarId'); }); } QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'id'); }); } QueryBuilder lastBackupProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'lastBackup'); }); } QueryBuilder selectionProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'selection'); }); } }