// GENERATED CODE - DO NOT MODIFY BY HAND part of 'logger_message.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 GetLoggerMessageCollection on Isar { IsarCollection get loggerMessages => this.collection(); } const LoggerMessageSchema = CollectionSchema( name: r'LoggerMessage', id: -1606100856208753787, properties: { r'context1': PropertySchema( id: 0, name: r'context1', type: IsarType.string, ), r'context2': PropertySchema( id: 1, name: r'context2', type: IsarType.string, ), r'createdAt': PropertySchema( id: 2, name: r'createdAt', type: IsarType.dateTime, ), r'details': PropertySchema( id: 3, name: r'details', type: IsarType.string, ), r'level': PropertySchema( id: 4, name: r'level', type: IsarType.byte, enumMap: _LoggerMessagelevelEnumValueMap, ), r'message': PropertySchema( id: 5, name: r'message', type: IsarType.string, ) }, estimateSize: _loggerMessageEstimateSize, serialize: _loggerMessageSerialize, deserialize: _loggerMessageDeserialize, deserializeProp: _loggerMessageDeserializeProp, idName: r'id', indexes: {}, links: {}, embeddedSchemas: {}, getId: _loggerMessageGetId, getLinks: _loggerMessageGetLinks, attach: _loggerMessageAttach, version: '3.1.0+1', ); int _loggerMessageEstimateSize( LoggerMessage object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; { final value = object.context1; if (value != null) { bytesCount += 3 + value.length * 3; } } { final value = object.context2; if (value != null) { bytesCount += 3 + value.length * 3; } } { final value = object.details; if (value != null) { bytesCount += 3 + value.length * 3; } } bytesCount += 3 + object.message.length * 3; return bytesCount; } void _loggerMessageSerialize( LoggerMessage object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeString(offsets[0], object.context1); writer.writeString(offsets[1], object.context2); writer.writeDateTime(offsets[2], object.createdAt); writer.writeString(offsets[3], object.details); writer.writeByte(offsets[4], object.level.index); writer.writeString(offsets[5], object.message); } LoggerMessage _loggerMessageDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = LoggerMessage( context1: reader.readStringOrNull(offsets[0]), context2: reader.readStringOrNull(offsets[1]), createdAt: reader.readDateTime(offsets[2]), details: reader.readStringOrNull(offsets[3]), level: _LoggerMessagelevelValueEnumMap[reader.readByteOrNull(offsets[4])] ?? LogLevel.ALL, message: reader.readString(offsets[5]), ); object.id = id; return object; } P _loggerMessageDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readStringOrNull(offset)) as P; case 1: return (reader.readStringOrNull(offset)) as P; case 2: return (reader.readDateTime(offset)) as P; case 3: return (reader.readStringOrNull(offset)) as P; case 4: return (_LoggerMessagelevelValueEnumMap[reader.readByteOrNull(offset)] ?? LogLevel.ALL) as P; case 5: return (reader.readString(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } const _LoggerMessagelevelEnumValueMap = { 'ALL': 0, 'FINEST': 1, 'FINER': 2, 'FINE': 3, 'CONFIG': 4, 'INFO': 5, 'WARNING': 6, 'SEVERE': 7, 'SHOUT': 8, 'OFF': 9, }; const _LoggerMessagelevelValueEnumMap = { 0: LogLevel.ALL, 1: LogLevel.FINEST, 2: LogLevel.FINER, 3: LogLevel.FINE, 4: LogLevel.CONFIG, 5: LogLevel.INFO, 6: LogLevel.WARNING, 7: LogLevel.SEVERE, 8: LogLevel.SHOUT, 9: LogLevel.OFF, }; Id _loggerMessageGetId(LoggerMessage object) { return object.id; } List> _loggerMessageGetLinks(LoggerMessage object) { return []; } void _loggerMessageAttach( IsarCollection col, Id id, LoggerMessage object) { object.id = id; } extension LoggerMessageQueryWhereSort on QueryBuilder { QueryBuilder anyId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension LoggerMessageQueryWhere 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 LoggerMessageQueryFilter on QueryBuilder { QueryBuilder context1IsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'context1', )); }); } QueryBuilder context1IsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'context1', )); }); } QueryBuilder context1EqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'context1', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder context1GreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'context1', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder context1LessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'context1', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder context1Between( 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'context1', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder context1StartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'context1', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder context1EndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'context1', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder context1Contains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'context1', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder context1Matches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'context1', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder context1IsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'context1', value: '', )); }); } QueryBuilder context1IsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'context1', value: '', )); }); } QueryBuilder context2IsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'context2', )); }); } QueryBuilder context2IsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'context2', )); }); } QueryBuilder context2EqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'context2', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder context2GreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'context2', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder context2LessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'context2', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder context2Between( 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'context2', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder context2StartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'context2', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder context2EndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'context2', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder context2Contains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'context2', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder context2Matches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'context2', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder context2IsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'context2', value: '', )); }); } QueryBuilder context2IsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'context2', value: '', )); }); } QueryBuilder createdAtEqualTo(DateTime value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'createdAt', value: value, )); }); } QueryBuilder createdAtGreaterThan( DateTime value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'createdAt', value: value, )); }); } QueryBuilder createdAtLessThan( DateTime value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'createdAt', value: value, )); }); } QueryBuilder createdAtBetween( DateTime lower, DateTime upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'createdAt', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder detailsIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'details', )); }); } QueryBuilder detailsIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'details', )); }); } QueryBuilder detailsEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'details', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder detailsGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'details', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder detailsLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'details', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder detailsBetween( 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'details', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder detailsStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'details', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder detailsEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'details', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder detailsContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'details', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder detailsMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'details', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder detailsIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'details', value: '', )); }); } QueryBuilder detailsIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'details', value: '', )); }); } 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 levelEqualTo(LogLevel value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'level', value: value, )); }); } QueryBuilder levelGreaterThan( LogLevel value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'level', value: value, )); }); } QueryBuilder levelLessThan( LogLevel value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'level', value: value, )); }); } QueryBuilder levelBetween( LogLevel lower, LogLevel upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'level', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder messageEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'message', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder messageGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'message', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder messageLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'message', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder messageBetween( 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'message', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder messageStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'message', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder messageEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'message', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder messageContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'message', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder messageMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'message', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder messageIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'message', value: '', )); }); } QueryBuilder messageIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'message', value: '', )); }); } } extension LoggerMessageQueryObject on QueryBuilder {} extension LoggerMessageQueryLinks on QueryBuilder {} extension LoggerMessageQuerySortBy on QueryBuilder { QueryBuilder sortByContext1() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'context1', Sort.asc); }); } QueryBuilder sortByContext1Desc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'context1', Sort.desc); }); } QueryBuilder sortByContext2() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'context2', Sort.asc); }); } QueryBuilder sortByContext2Desc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'context2', Sort.desc); }); } QueryBuilder sortByCreatedAt() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'createdAt', Sort.asc); }); } QueryBuilder sortByCreatedAtDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'createdAt', Sort.desc); }); } QueryBuilder sortByDetails() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'details', Sort.asc); }); } QueryBuilder sortByDetailsDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'details', Sort.desc); }); } QueryBuilder sortByLevel() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'level', Sort.asc); }); } QueryBuilder sortByLevelDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'level', Sort.desc); }); } QueryBuilder sortByMessage() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'message', Sort.asc); }); } QueryBuilder sortByMessageDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'message', Sort.desc); }); } } extension LoggerMessageQuerySortThenBy on QueryBuilder { QueryBuilder thenByContext1() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'context1', Sort.asc); }); } QueryBuilder thenByContext1Desc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'context1', Sort.desc); }); } QueryBuilder thenByContext2() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'context2', Sort.asc); }); } QueryBuilder thenByContext2Desc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'context2', Sort.desc); }); } QueryBuilder thenByCreatedAt() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'createdAt', Sort.asc); }); } QueryBuilder thenByCreatedAtDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'createdAt', Sort.desc); }); } QueryBuilder thenByDetails() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'details', Sort.asc); }); } QueryBuilder thenByDetailsDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'details', 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 thenByLevel() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'level', Sort.asc); }); } QueryBuilder thenByLevelDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'level', Sort.desc); }); } QueryBuilder thenByMessage() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'message', Sort.asc); }); } QueryBuilder thenByMessageDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'message', Sort.desc); }); } } extension LoggerMessageQueryWhereDistinct on QueryBuilder { QueryBuilder distinctByContext1( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'context1', caseSensitive: caseSensitive); }); } QueryBuilder distinctByContext2( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'context2', caseSensitive: caseSensitive); }); } QueryBuilder distinctByCreatedAt() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'createdAt'); }); } QueryBuilder distinctByDetails( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'details', caseSensitive: caseSensitive); }); } QueryBuilder distinctByLevel() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'level'); }); } QueryBuilder distinctByMessage( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'message', caseSensitive: caseSensitive); }); } } extension LoggerMessageQueryProperty on QueryBuilder { QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'id'); }); } QueryBuilder context1Property() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'context1'); }); } QueryBuilder context2Property() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'context2'); }); } QueryBuilder createdAtProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'createdAt'); }); } QueryBuilder detailsProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'details'); }); } QueryBuilder levelProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'level'); }); } QueryBuilder messageProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'message'); }); } }