// GENERATED CODE - DO NOT MODIFY BY HAND part of 'duplicated_asset.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 GetDuplicatedAssetCollection on Isar { IsarCollection get duplicatedAssets => this.collection(); } const DuplicatedAssetSchema = CollectionSchema( name: r'DuplicatedAsset', id: -2679334728174694496, properties: { r'id': PropertySchema( id: 0, name: r'id', type: IsarType.string, ) }, estimateSize: _duplicatedAssetEstimateSize, serialize: _duplicatedAssetSerialize, deserialize: _duplicatedAssetDeserialize, deserializeProp: _duplicatedAssetDeserializeProp, idName: r'isarId', indexes: {}, links: {}, embeddedSchemas: {}, getId: _duplicatedAssetGetId, getLinks: _duplicatedAssetGetLinks, attach: _duplicatedAssetAttach, version: '3.1.0+1', ); int _duplicatedAssetEstimateSize( DuplicatedAsset object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; bytesCount += 3 + object.id.length * 3; return bytesCount; } void _duplicatedAssetSerialize( DuplicatedAsset object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeString(offsets[0], object.id); } DuplicatedAsset _duplicatedAssetDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = DuplicatedAsset( reader.readString(offsets[0]), ); return object; } P _duplicatedAssetDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readString(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } Id _duplicatedAssetGetId(DuplicatedAsset object) { return object.isarId; } List> _duplicatedAssetGetLinks(DuplicatedAsset object) { return []; } void _duplicatedAssetAttach( IsarCollection col, Id id, DuplicatedAsset object) {} extension DuplicatedAssetQueryWhereSort on QueryBuilder { QueryBuilder anyIsarId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension DuplicatedAssetQueryWhere 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 DuplicatedAssetQueryFilter 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, )); }); } } extension DuplicatedAssetQueryObject on QueryBuilder {} extension DuplicatedAssetQueryLinks on QueryBuilder {} extension DuplicatedAssetQuerySortBy 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); }); } } extension DuplicatedAssetQuerySortThenBy 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); }); } } extension DuplicatedAssetQueryWhereDistinct on QueryBuilder { QueryBuilder distinctById( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'id', caseSensitive: caseSensitive); }); } } extension DuplicatedAssetQueryProperty 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'); }); } }