// GENERATED CODE - DO NOT MODIFY BY HAND part of 'local_patient_info.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 GetLocalPatientInfoCollection on Isar { IsarCollection get localPatientInfos => this.collection(); } const LocalPatientInfoSchema = CollectionSchema( name: r'LocalPatientInfo', id: -6338185391368687767, properties: { r'idCard': PropertySchema( id: 0, name: r'idCard', type: IsarType.string, ), r'idCardDecrypt': PropertySchema( id: 1, name: r'idCardDecrypt', type: IsarType.string, ), r'name': PropertySchema( id: 2, name: r'name', type: IsarType.string, ), r'namePic': PropertySchema( id: 3, name: r'namePic', type: IsarType.string, ), r'relation': PropertySchema( id: 4, name: r'relation', type: IsarType.string, ), r'serverId': PropertySchema( id: 5, name: r'serverId', type: IsarType.string, ), r'userId': PropertySchema( id: 6, name: r'userId', type: IsarType.string, ) }, estimateSize: _localPatientInfoEstimateSize, serialize: _localPatientInfoSerialize, deserialize: _localPatientInfoDeserialize, deserializeProp: _localPatientInfoDeserializeProp, idName: r'id', indexes: {}, links: {}, embeddedSchemas: {}, getId: _localPatientInfoGetId, getLinks: _localPatientInfoGetLinks, attach: _localPatientInfoAttach, version: '3.1.8', ); int _localPatientInfoEstimateSize( LocalPatientInfo object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; { final value = object.idCard; if (value != null) { bytesCount += 3 + value.length * 3; } } bytesCount += 3 + object.idCardDecrypt.length * 3; { final value = object.name; if (value != null) { bytesCount += 3 + value.length * 3; } } { final value = object.namePic; if (value != null) { bytesCount += 3 + value.length * 3; } } { final value = object.relation; if (value != null) { bytesCount += 3 + value.length * 3; } } { final value = object.serverId; if (value != null) { bytesCount += 3 + value.length * 3; } } { final value = object.userId; if (value != null) { bytesCount += 3 + value.length * 3; } } return bytesCount; } void _localPatientInfoSerialize( LocalPatientInfo object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeString(offsets[0], object.idCard); writer.writeString(offsets[1], object.idCardDecrypt); writer.writeString(offsets[2], object.name); writer.writeString(offsets[3], object.namePic); writer.writeString(offsets[4], object.relation); writer.writeString(offsets[5], object.serverId); writer.writeString(offsets[6], object.userId); } LocalPatientInfo _localPatientInfoDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = LocalPatientInfo( idCard: reader.readStringOrNull(offsets[0]), name: reader.readStringOrNull(offsets[2]), namePic: reader.readStringOrNull(offsets[3]), relation: reader.readStringOrNull(offsets[4]), serverId: reader.readStringOrNull(offsets[5]), userId: reader.readStringOrNull(offsets[6]), ); object.id = id; return object; } P _localPatientInfoDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readStringOrNull(offset)) as P; case 1: return (reader.readString(offset)) as P; case 2: return (reader.readStringOrNull(offset)) as P; case 3: return (reader.readStringOrNull(offset)) as P; case 4: return (reader.readStringOrNull(offset)) as P; case 5: return (reader.readStringOrNull(offset)) as P; case 6: return (reader.readStringOrNull(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } Id _localPatientInfoGetId(LocalPatientInfo object) { return object.id; } List> _localPatientInfoGetLinks(LocalPatientInfo object) { return []; } void _localPatientInfoAttach( IsarCollection col, Id id, LocalPatientInfo object) { object.id = id; } extension LocalPatientInfoQueryWhereSort on QueryBuilder { QueryBuilder anyId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension LocalPatientInfoQueryWhere 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 LocalPatientInfoQueryFilter on QueryBuilder { QueryBuilder idEqualTo(Id value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'id', value: value, )); }); } QueryBuilder idGreaterThan( Id value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'id', value: value, )); }); } QueryBuilder idLessThan( Id value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'id', value: value, )); }); } QueryBuilder idBetween( Id lower, Id upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'id', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder idCardIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'idCard', )); }); } QueryBuilder idCardIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'idCard', )); }); } QueryBuilder idCardEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'idCard', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idCardGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'idCard', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idCardLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'idCard', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idCardBetween( 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'idCard', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder idCardStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'idCard', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idCardEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'idCard', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idCardContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'idCard', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idCardMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'idCard', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder idCardIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'idCard', value: '', )); }); } QueryBuilder idCardIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'idCard', value: '', )); }); } QueryBuilder idCardDecryptEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'idCardDecrypt', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idCardDecryptGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'idCardDecrypt', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idCardDecryptLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'idCardDecrypt', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idCardDecryptBetween( 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'idCardDecrypt', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder idCardDecryptStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'idCardDecrypt', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idCardDecryptEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'idCardDecrypt', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idCardDecryptContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'idCardDecrypt', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idCardDecryptMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'idCardDecrypt', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder idCardDecryptIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'idCardDecrypt', value: '', )); }); } QueryBuilder idCardDecryptIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'idCardDecrypt', value: '', )); }); } QueryBuilder nameIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'name', )); }); } QueryBuilder nameIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'name', )); }); } QueryBuilder nameEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'name', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder nameGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'name', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder nameLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'name', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder nameBetween( 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'name', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder nameStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'name', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder nameEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'name', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder nameContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'name', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder nameMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'name', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder nameIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'name', value: '', )); }); } QueryBuilder nameIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'name', value: '', )); }); } QueryBuilder namePicIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'namePic', )); }); } QueryBuilder namePicIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'namePic', )); }); } QueryBuilder namePicEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'namePic', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder namePicGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'namePic', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder namePicLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'namePic', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder namePicBetween( 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'namePic', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder namePicStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'namePic', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder namePicEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'namePic', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder namePicContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'namePic', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder namePicMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'namePic', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder namePicIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'namePic', value: '', )); }); } QueryBuilder namePicIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'namePic', value: '', )); }); } QueryBuilder relationIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'relation', )); }); } QueryBuilder relationIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'relation', )); }); } QueryBuilder relationEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'relation', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder relationGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'relation', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder relationLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'relation', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder relationBetween( 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'relation', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder relationStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'relation', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder relationEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'relation', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder relationContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'relation', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder relationMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'relation', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder relationIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'relation', value: '', )); }); } QueryBuilder relationIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'relation', value: '', )); }); } QueryBuilder serverIdIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'serverId', )); }); } QueryBuilder serverIdIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'serverId', )); }); } QueryBuilder serverIdEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'serverId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder serverIdGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'serverId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder serverIdLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'serverId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder serverIdBetween( 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'serverId', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder serverIdStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'serverId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder serverIdEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'serverId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder serverIdContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'serverId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder serverIdMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'serverId', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder serverIdIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'serverId', value: '', )); }); } QueryBuilder serverIdIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'serverId', value: '', )); }); } QueryBuilder userIdIsNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNull( property: r'userId', )); }); } QueryBuilder userIdIsNotNull() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(const FilterCondition.isNotNull( property: r'userId', )); }); } QueryBuilder userIdEqualTo( String? value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'userId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder userIdGreaterThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'userId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder userIdLessThan( String? value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'userId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder userIdBetween( 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'userId', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder userIdStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'userId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder userIdEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'userId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder userIdContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'userId', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder userIdMatches(String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'userId', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder userIdIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'userId', value: '', )); }); } QueryBuilder userIdIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'userId', value: '', )); }); } } extension LocalPatientInfoQueryObject on QueryBuilder {} extension LocalPatientInfoQueryLinks on QueryBuilder {} extension LocalPatientInfoQuerySortBy on QueryBuilder { QueryBuilder sortByIdCard() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'idCard', Sort.asc); }); } QueryBuilder sortByIdCardDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'idCard', Sort.desc); }); } QueryBuilder sortByIdCardDecrypt() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'idCardDecrypt', Sort.asc); }); } QueryBuilder sortByIdCardDecryptDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'idCardDecrypt', Sort.desc); }); } QueryBuilder sortByName() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'name', Sort.asc); }); } QueryBuilder sortByNameDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'name', Sort.desc); }); } QueryBuilder sortByNamePic() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'namePic', Sort.asc); }); } QueryBuilder sortByNamePicDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'namePic', Sort.desc); }); } QueryBuilder sortByRelation() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'relation', Sort.asc); }); } QueryBuilder sortByRelationDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'relation', Sort.desc); }); } QueryBuilder sortByServerId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'serverId', Sort.asc); }); } QueryBuilder sortByServerIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'serverId', Sort.desc); }); } QueryBuilder sortByUserId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'userId', Sort.asc); }); } QueryBuilder sortByUserIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'userId', Sort.desc); }); } } extension LocalPatientInfoQuerySortThenBy 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 thenByIdCard() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'idCard', Sort.asc); }); } QueryBuilder thenByIdCardDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'idCard', Sort.desc); }); } QueryBuilder thenByIdCardDecrypt() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'idCardDecrypt', Sort.asc); }); } QueryBuilder thenByIdCardDecryptDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'idCardDecrypt', Sort.desc); }); } QueryBuilder thenByName() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'name', Sort.asc); }); } QueryBuilder thenByNameDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'name', Sort.desc); }); } QueryBuilder thenByNamePic() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'namePic', Sort.asc); }); } QueryBuilder thenByNamePicDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'namePic', Sort.desc); }); } QueryBuilder thenByRelation() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'relation', Sort.asc); }); } QueryBuilder thenByRelationDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'relation', Sort.desc); }); } QueryBuilder thenByServerId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'serverId', Sort.asc); }); } QueryBuilder thenByServerIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'serverId', Sort.desc); }); } QueryBuilder thenByUserId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'userId', Sort.asc); }); } QueryBuilder thenByUserIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'userId', Sort.desc); }); } } extension LocalPatientInfoQueryWhereDistinct on QueryBuilder { QueryBuilder distinctByIdCard( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'idCard', caseSensitive: caseSensitive); }); } QueryBuilder distinctByIdCardDecrypt({bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'idCardDecrypt', caseSensitive: caseSensitive); }); } QueryBuilder distinctByName( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'name', caseSensitive: caseSensitive); }); } QueryBuilder distinctByNamePic( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'namePic', caseSensitive: caseSensitive); }); } QueryBuilder distinctByRelation({bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'relation', caseSensitive: caseSensitive); }); } QueryBuilder distinctByServerId({bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'serverId', caseSensitive: caseSensitive); }); } QueryBuilder distinctByUserId( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'userId', caseSensitive: caseSensitive); }); } } extension LocalPatientInfoQueryProperty on QueryBuilder { QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'id'); }); } QueryBuilder idCardProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'idCard'); }); } QueryBuilder idCardDecryptProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'idCardDecrypt'); }); } QueryBuilder nameProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'name'); }); } QueryBuilder namePicProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'namePic'); }); } QueryBuilder relationProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'relation'); }); } QueryBuilder serverIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'serverId'); }); } QueryBuilder userIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'userId'); }); } }