// GENERATED CODE - DO NOT MODIFY BY HAND part of 'asset.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 GetAssetCollection on Isar { IsarCollection get assets => this.collection(); } const AssetSchema = CollectionSchema( name: r'Asset', id: -2933289051367723566, properties: { r'deviceId': PropertySchema( id: 0, name: r'deviceId', type: IsarType.long, ), r'durationInSeconds': PropertySchema( id: 1, name: r'durationInSeconds', type: IsarType.long, ), r'fileCreatedAt': PropertySchema( id: 2, name: r'fileCreatedAt', type: IsarType.dateTime, ), r'fileModifiedAt': PropertySchema( id: 3, name: r'fileModifiedAt', type: IsarType.dateTime, ), r'fileName': PropertySchema( id: 4, name: r'fileName', type: IsarType.string, ), r'height': PropertySchema( id: 5, name: r'height', type: IsarType.int, ), r'isFavorite': PropertySchema( id: 6, name: r'isFavorite', type: IsarType.bool, ), r'isLocal': PropertySchema( id: 7, name: r'isLocal', type: IsarType.bool, ), r'livePhotoVideoId': PropertySchema( id: 8, name: r'livePhotoVideoId', type: IsarType.string, ), r'localId': PropertySchema( id: 9, name: r'localId', type: IsarType.string, ), r'ownerId': PropertySchema( id: 10, name: r'ownerId', type: IsarType.long, ), r'remoteId': PropertySchema( id: 11, name: r'remoteId', type: IsarType.string, ), r'type': PropertySchema( id: 12, name: r'type', type: IsarType.byte, enumMap: _AssettypeEnumValueMap, ), r'updatedAt': PropertySchema( id: 13, name: r'updatedAt', type: IsarType.dateTime, ), r'width': PropertySchema( id: 14, name: r'width', type: IsarType.int, ) }, estimateSize: _assetEstimateSize, serialize: _assetSerialize, deserialize: _assetDeserialize, deserializeProp: _assetDeserializeProp, idName: r'id', indexes: { r'remoteId': IndexSchema( id: 6301175856541681032, name: r'remoteId', unique: false, replace: false, properties: [ IndexPropertySchema( name: r'remoteId', type: IndexType.hash, caseSensitive: true, ) ], ), r'localId_deviceId': IndexSchema( id: 7649417350086526165, name: r'localId_deviceId', unique: false, replace: false, properties: [ IndexPropertySchema( name: r'localId', type: IndexType.hash, caseSensitive: true, ), IndexPropertySchema( name: r'deviceId', type: IndexType.value, caseSensitive: false, ) ], ) }, links: {}, embeddedSchemas: {}, getId: _assetGetId, getLinks: _assetGetLinks, attach: _assetAttach, version: '3.0.5', ); int _assetEstimateSize( Asset object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; bytesCount += 3 + object.fileName.length * 3; { final value = object.livePhotoVideoId; if (value != null) { bytesCount += 3 + value.length * 3; } } bytesCount += 3 + object.localId.length * 3; { final value = object.remoteId; if (value != null) { bytesCount += 3 + value.length * 3; } } return bytesCount; } void _assetSerialize( Asset object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeLong(offsets[0], object.deviceId); writer.writeLong(offsets[1], object.durationInSeconds); writer.writeDateTime(offsets[2], object.fileCreatedAt); writer.writeDateTime(offsets[3], object.fileModifiedAt); writer.writeString(offsets[4], object.fileName); writer.writeInt(offsets[5], object.height); writer.writeBool(offsets[6], object.isFavorite); writer.writeBool(offsets[7], object.isLocal); writer.writeString(offsets[8], object.livePhotoVideoId); writer.writeString(offsets[9], object.localId); writer.writeLong(offsets[10], object.ownerId); writer.writeString(offsets[11], object.remoteId); writer.writeByte(offsets[12], object.type.index); writer.writeDateTime(offsets[13], object.updatedAt); writer.writeInt(offsets[14], object.width); } Asset _assetDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = Asset( deviceId: reader.readLong(offsets[0]), durationInSeconds: reader.readLong(offsets[1]), fileCreatedAt: reader.readDateTime(offsets[2]), fileModifiedAt: reader.readDateTime(offsets[3]), fileName: reader.readString(offsets[4]), height: reader.readIntOrNull(offsets[5]), isFavorite: reader.readBool(offsets[6]), isLocal: reader.readBool(offsets[7]), livePhotoVideoId: reader.readStringOrNull(offsets[8]), localId: reader.readString(offsets[9]), ownerId: reader.readLong(offsets[10]), remoteId: reader.readStringOrNull(offsets[11]), type: _AssettypeValueEnumMap[reader.readByteOrNull(offsets[12])] ?? AssetType.other, updatedAt: reader.readDateTime(offsets[13]), width: reader.readIntOrNull(offsets[14]), ); object.id = id; return object; } P _assetDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readLong(offset)) as P; case 1: return (reader.readLong(offset)) as P; case 2: return (reader.readDateTime(offset)) as P; case 3: return (reader.readDateTime(offset)) as P; case 4: return (reader.readString(offset)) as P; case 5: return (reader.readIntOrNull(offset)) as P; case 6: return (reader.readBool(offset)) as P; case 7: return (reader.readBool(offset)) as P; case 8: return (reader.readStringOrNull(offset)) as P; case 9: return (reader.readString(offset)) as P; case 10: return (reader.readLong(offset)) as P; case 11: return (reader.readStringOrNull(offset)) as P; case 12: return (_AssettypeValueEnumMap[reader.readByteOrNull(offset)] ?? AssetType.other) as P; case 13: return (reader.readDateTime(offset)) as P; case 14: return (reader.readIntOrNull(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } const _AssettypeEnumValueMap = { 'other': 0, 'image': 1, 'video': 2, 'audio': 3, }; const _AssettypeValueEnumMap = { 0: AssetType.other, 1: AssetType.image, 2: AssetType.video, 3: AssetType.audio, }; Id _assetGetId(Asset object) { return object.id; } List> _assetGetLinks(Asset object) { return []; } void _assetAttach(IsarCollection col, Id id, Asset object) { object.id = id; } extension AssetQueryWhereSort on QueryBuilder { QueryBuilder anyId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension AssetQueryWhere 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 remoteIdIsNull() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'remoteId', value: [null], )); }); } QueryBuilder remoteIdIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.between( indexName: r'remoteId', lower: [null], includeLower: false, upper: [], )); }); } QueryBuilder remoteIdEqualTo( String? remoteId) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'remoteId', value: [remoteId], )); }); } QueryBuilder remoteIdNotEqualTo( String? remoteId) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'remoteId', lower: [], upper: [remoteId], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'remoteId', lower: [remoteId], includeLower: false, upper: [], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'remoteId', lower: [remoteId], includeLower: false, upper: [], )) .addWhereClause(IndexWhereClause.between( indexName: r'remoteId', lower: [], upper: [remoteId], includeUpper: false, )); } }); } QueryBuilder localIdEqualToAnyDeviceId( String localId) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'localId_deviceId', value: [localId], )); }); } QueryBuilder localIdNotEqualToAnyDeviceId( String localId) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'localId_deviceId', lower: [], upper: [localId], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'localId_deviceId', lower: [localId], includeLower: false, upper: [], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'localId_deviceId', lower: [localId], includeLower: false, upper: [], )) .addWhereClause(IndexWhereClause.between( indexName: r'localId_deviceId', lower: [], upper: [localId], includeUpper: false, )); } }); } QueryBuilder localIdDeviceIdEqualTo( String localId, int deviceId) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'localId_deviceId', value: [localId, deviceId], )); }); } QueryBuilder localIdEqualToDeviceIdNotEqualTo(String localId, int deviceId) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'localId_deviceId', lower: [localId], upper: [localId, deviceId], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'localId_deviceId', lower: [localId, deviceId], includeLower: false, upper: [localId], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'localId_deviceId', lower: [localId, deviceId], includeLower: false, upper: [localId], )) .addWhereClause(IndexWhereClause.between( indexName: r'localId_deviceId', lower: [localId], upper: [localId, deviceId], includeUpper: false, )); } }); } QueryBuilder localIdEqualToDeviceIdGreaterThan( String localId, int deviceId, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.between( indexName: r'localId_deviceId', lower: [localId, deviceId], includeLower: include, upper: [localId], )); }); } QueryBuilder localIdEqualToDeviceIdLessThan( String localId, int deviceId, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.between( indexName: r'localId_deviceId', lower: [localId], upper: [localId, deviceId], includeUpper: include, )); }); } QueryBuilder localIdEqualToDeviceIdBetween( String localId, int lowerDeviceId, int upperDeviceId, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.between( indexName: r'localId_deviceId', lower: [localId, lowerDeviceId], includeLower: includeLower, upper: [localId, upperDeviceId], includeUpper: includeUpper, )); }); } } extension AssetQueryFilter on QueryBuilder { QueryBuilder deviceIdEqualTo(int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'deviceId', value: value, )); }); } QueryBuilder deviceIdGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'deviceId', value: value, )); }); } QueryBuilder deviceIdLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'deviceId', value: value, )); }); } QueryBuilder deviceIdBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'deviceId', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder durationInSecondsEqualTo( int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'durationInSeconds', value: value, )); }); } QueryBuilder durationInSecondsGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'durationInSeconds', value: value, )); }); } QueryBuilder durationInSecondsLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'durationInSeconds', value: value, )); }); } QueryBuilder durationInSecondsBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'durationInSeconds', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder fileCreatedAtEqualTo( DateTime value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'fileCreatedAt', value: value, )); }); } QueryBuilder fileCreatedAtGreaterThan( DateTime value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'fileCreatedAt', value: value, )); }); } QueryBuilder fileCreatedAtLessThan( DateTime value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'fileCreatedAt', value: value, )); }); } QueryBuilder fileCreatedAtBetween( DateTime lower, DateTime upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'fileCreatedAt', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder fileModifiedAtEqualTo( DateTime value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'fileModifiedAt', value: value, )); }); } QueryBuilder fileModifiedAtGreaterThan( DateTime value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'fileModifiedAt', value: value, )); }); } QueryBuilder fileModifiedAtLessThan( DateTime value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'fileModifiedAt', value: value, )); }); } QueryBuilder fileModifiedAtBetween( DateTime lower, DateTime upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'fileModifiedAt', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder fileNameEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'fileName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder fileNameGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'fileName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder fileNameLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'fileName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder fileNameBetween( 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'fileName', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder fileNameStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'fileName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder fileNameEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'fileName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder fileNameContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'fileName', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder fileNameMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'fileName', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder fileNameIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'fileName', value: '', )); }); } QueryBuilder fileNameIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'fileName', value: '', )); }); } QueryBuilder heightIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'height', )); }); } QueryBuilder heightIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'height', )); }); } QueryBuilder heightEqualTo(int? value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'height', value: value, )); }); } QueryBuilder heightGreaterThan( int? value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'height', value: value, )); }); } QueryBuilder heightLessThan( int? value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'height', value: value, )); }); } QueryBuilder heightBetween( int? lower, int? upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'height', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } 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 isFavoriteEqualTo( bool value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'isFavorite', value: value, )); }); } QueryBuilder isLocalEqualTo(bool value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'isLocal', value: value, )); }); } QueryBuilder livePhotoVideoIdIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'livePhotoVideoId', )); }); } QueryBuilder livePhotoVideoIdIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'livePhotoVideoId', )); }); } QueryBuilder livePhotoVideoIdEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'livePhotoVideoId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder livePhotoVideoIdGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'livePhotoVideoId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder livePhotoVideoIdLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'livePhotoVideoId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder livePhotoVideoIdBetween( 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'livePhotoVideoId', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder livePhotoVideoIdStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'livePhotoVideoId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder livePhotoVideoIdEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'livePhotoVideoId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder livePhotoVideoIdContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'livePhotoVideoId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder livePhotoVideoIdMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'livePhotoVideoId', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder livePhotoVideoIdIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'livePhotoVideoId', value: '', )); }); } QueryBuilder livePhotoVideoIdIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'livePhotoVideoId', value: '', )); }); } QueryBuilder localIdEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'localId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder localIdGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'localId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder localIdLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'localId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder localIdBetween( 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'localId', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder localIdStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'localId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder localIdEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'localId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder localIdContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'localId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder localIdMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'localId', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder localIdIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'localId', value: '', )); }); } QueryBuilder localIdIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'localId', value: '', )); }); } QueryBuilder ownerIdEqualTo(int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'ownerId', value: value, )); }); } QueryBuilder ownerIdGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'ownerId', value: value, )); }); } QueryBuilder ownerIdLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'ownerId', value: value, )); }); } QueryBuilder ownerIdBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'ownerId', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder remoteIdIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'remoteId', )); }); } QueryBuilder remoteIdIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'remoteId', )); }); } QueryBuilder remoteIdEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'remoteId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder remoteIdGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'remoteId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder remoteIdLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'remoteId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder remoteIdBetween( 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'remoteId', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder remoteIdStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'remoteId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder remoteIdEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'remoteId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder remoteIdContains( String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'remoteId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder remoteIdMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'remoteId', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder remoteIdIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'remoteId', value: '', )); }); } QueryBuilder remoteIdIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'remoteId', value: '', )); }); } QueryBuilder typeEqualTo( AssetType value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'type', value: value, )); }); } QueryBuilder typeGreaterThan( AssetType value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'type', value: value, )); }); } QueryBuilder typeLessThan( AssetType value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'type', value: value, )); }); } QueryBuilder typeBetween( AssetType lower, AssetType upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'type', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder updatedAtEqualTo( DateTime value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'updatedAt', value: value, )); }); } QueryBuilder updatedAtGreaterThan( DateTime value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'updatedAt', value: value, )); }); } QueryBuilder updatedAtLessThan( DateTime value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'updatedAt', value: value, )); }); } QueryBuilder updatedAtBetween( DateTime lower, DateTime upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'updatedAt', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder widthIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'width', )); }); } QueryBuilder widthIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'width', )); }); } QueryBuilder widthEqualTo(int? value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'width', value: value, )); }); } QueryBuilder widthGreaterThan( int? value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'width', value: value, )); }); } QueryBuilder widthLessThan( int? value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'width', value: value, )); }); } QueryBuilder widthBetween( int? lower, int? upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'width', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } } extension AssetQueryObject on QueryBuilder {} extension AssetQueryLinks on QueryBuilder {} extension AssetQuerySortBy on QueryBuilder { QueryBuilder sortByDeviceId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'deviceId', Sort.asc); }); } QueryBuilder sortByDeviceIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'deviceId', Sort.desc); }); } QueryBuilder sortByDurationInSeconds() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'durationInSeconds', Sort.asc); }); } QueryBuilder sortByDurationInSecondsDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'durationInSeconds', Sort.desc); }); } QueryBuilder sortByFileCreatedAt() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'fileCreatedAt', Sort.asc); }); } QueryBuilder sortByFileCreatedAtDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'fileCreatedAt', Sort.desc); }); } QueryBuilder sortByFileModifiedAt() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'fileModifiedAt', Sort.asc); }); } QueryBuilder sortByFileModifiedAtDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'fileModifiedAt', Sort.desc); }); } QueryBuilder sortByFileName() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'fileName', Sort.asc); }); } QueryBuilder sortByFileNameDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'fileName', Sort.desc); }); } QueryBuilder sortByHeight() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'height', Sort.asc); }); } QueryBuilder sortByHeightDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'height', Sort.desc); }); } QueryBuilder sortByIsFavorite() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isFavorite', Sort.asc); }); } QueryBuilder sortByIsFavoriteDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isFavorite', Sort.desc); }); } QueryBuilder sortByIsLocal() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isLocal', Sort.asc); }); } QueryBuilder sortByIsLocalDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isLocal', Sort.desc); }); } QueryBuilder sortByLivePhotoVideoId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'livePhotoVideoId', Sort.asc); }); } QueryBuilder sortByLivePhotoVideoIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'livePhotoVideoId', Sort.desc); }); } QueryBuilder sortByLocalId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'localId', Sort.asc); }); } QueryBuilder sortByLocalIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'localId', Sort.desc); }); } QueryBuilder sortByOwnerId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'ownerId', Sort.asc); }); } QueryBuilder sortByOwnerIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'ownerId', Sort.desc); }); } QueryBuilder sortByRemoteId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'remoteId', Sort.asc); }); } QueryBuilder sortByRemoteIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'remoteId', Sort.desc); }); } QueryBuilder sortByType() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'type', Sort.asc); }); } QueryBuilder sortByTypeDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'type', Sort.desc); }); } QueryBuilder sortByUpdatedAt() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'updatedAt', Sort.asc); }); } QueryBuilder sortByUpdatedAtDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'updatedAt', Sort.desc); }); } QueryBuilder sortByWidth() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'width', Sort.asc); }); } QueryBuilder sortByWidthDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'width', Sort.desc); }); } } extension AssetQuerySortThenBy on QueryBuilder { QueryBuilder thenByDeviceId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'deviceId', Sort.asc); }); } QueryBuilder thenByDeviceIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'deviceId', Sort.desc); }); } QueryBuilder thenByDurationInSeconds() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'durationInSeconds', Sort.asc); }); } QueryBuilder thenByDurationInSecondsDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'durationInSeconds', Sort.desc); }); } QueryBuilder thenByFileCreatedAt() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'fileCreatedAt', Sort.asc); }); } QueryBuilder thenByFileCreatedAtDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'fileCreatedAt', Sort.desc); }); } QueryBuilder thenByFileModifiedAt() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'fileModifiedAt', Sort.asc); }); } QueryBuilder thenByFileModifiedAtDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'fileModifiedAt', Sort.desc); }); } QueryBuilder thenByFileName() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'fileName', Sort.asc); }); } QueryBuilder thenByFileNameDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'fileName', Sort.desc); }); } QueryBuilder thenByHeight() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'height', Sort.asc); }); } QueryBuilder thenByHeightDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'height', 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 thenByIsFavorite() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isFavorite', Sort.asc); }); } QueryBuilder thenByIsFavoriteDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isFavorite', Sort.desc); }); } QueryBuilder thenByIsLocal() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isLocal', Sort.asc); }); } QueryBuilder thenByIsLocalDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isLocal', Sort.desc); }); } QueryBuilder thenByLivePhotoVideoId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'livePhotoVideoId', Sort.asc); }); } QueryBuilder thenByLivePhotoVideoIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'livePhotoVideoId', Sort.desc); }); } QueryBuilder thenByLocalId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'localId', Sort.asc); }); } QueryBuilder thenByLocalIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'localId', Sort.desc); }); } QueryBuilder thenByOwnerId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'ownerId', Sort.asc); }); } QueryBuilder thenByOwnerIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'ownerId', Sort.desc); }); } QueryBuilder thenByRemoteId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'remoteId', Sort.asc); }); } QueryBuilder thenByRemoteIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'remoteId', Sort.desc); }); } QueryBuilder thenByType() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'type', Sort.asc); }); } QueryBuilder thenByTypeDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'type', Sort.desc); }); } QueryBuilder thenByUpdatedAt() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'updatedAt', Sort.asc); }); } QueryBuilder thenByUpdatedAtDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'updatedAt', Sort.desc); }); } QueryBuilder thenByWidth() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'width', Sort.asc); }); } QueryBuilder thenByWidthDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'width', Sort.desc); }); } } extension AssetQueryWhereDistinct on QueryBuilder { QueryBuilder distinctByDeviceId() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'deviceId'); }); } QueryBuilder distinctByDurationInSeconds() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'durationInSeconds'); }); } QueryBuilder distinctByFileCreatedAt() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'fileCreatedAt'); }); } QueryBuilder distinctByFileModifiedAt() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'fileModifiedAt'); }); } QueryBuilder distinctByFileName( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'fileName', caseSensitive: caseSensitive); }); } QueryBuilder distinctByHeight() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'height'); }); } QueryBuilder distinctByIsFavorite() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'isFavorite'); }); } QueryBuilder distinctByIsLocal() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'isLocal'); }); } QueryBuilder distinctByLivePhotoVideoId( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'livePhotoVideoId', caseSensitive: caseSensitive); }); } QueryBuilder distinctByLocalId( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'localId', caseSensitive: caseSensitive); }); } QueryBuilder distinctByOwnerId() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'ownerId'); }); } QueryBuilder distinctByRemoteId( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'remoteId', caseSensitive: caseSensitive); }); } QueryBuilder distinctByType() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'type'); }); } QueryBuilder distinctByUpdatedAt() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'updatedAt'); }); } QueryBuilder distinctByWidth() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'width'); }); } } extension AssetQueryProperty on QueryBuilder { QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'id'); }); } QueryBuilder deviceIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'deviceId'); }); } QueryBuilder durationInSecondsProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'durationInSeconds'); }); } QueryBuilder fileCreatedAtProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'fileCreatedAt'); }); } QueryBuilder fileModifiedAtProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'fileModifiedAt'); }); } QueryBuilder fileNameProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'fileName'); }); } QueryBuilder heightProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'height'); }); } QueryBuilder isFavoriteProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'isFavorite'); }); } QueryBuilder isLocalProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'isLocal'); }); } QueryBuilder livePhotoVideoIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'livePhotoVideoId'); }); } QueryBuilder localIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'localId'); }); } QueryBuilder ownerIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'ownerId'); }); } QueryBuilder remoteIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'remoteId'); }); } QueryBuilder typeProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'type'); }); } QueryBuilder updatedAtProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'updatedAt'); }); } QueryBuilder widthProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'width'); }); } }