mirror of
https://github.com/ente-io/ente.git
synced 2025-07-01 13:13:35 +00:00
## Description - Update flutter - Update packages - Fix UI issues because of update (material 3) - bump up version to v0.8.80 ## Tests - [x] Building on android and iOS. --------- Co-authored-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
171 lines
5.1 KiB
Dart
171 lines
5.1 KiB
Dart
// coverage:ignore-file
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// ignore_for_file: type=lint
|
|
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
|
|
|
|
part of 'location.dart';
|
|
|
|
// **************************************************************************
|
|
// FreezedGenerator
|
|
// **************************************************************************
|
|
|
|
T _$identity<T>(T value) => value;
|
|
|
|
final _privateConstructorUsedError = UnsupportedError(
|
|
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
|
|
|
Location _$LocationFromJson(Map<String, dynamic> json) {
|
|
return _Location.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$Location {
|
|
double? get latitude => throw _privateConstructorUsedError;
|
|
double? get longitude => throw _privateConstructorUsedError;
|
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
@JsonKey(ignore: true)
|
|
$LocationCopyWith<Location> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $LocationCopyWith<$Res> {
|
|
factory $LocationCopyWith(Location value, $Res Function(Location) then) =
|
|
_$LocationCopyWithImpl<$Res, Location>;
|
|
@useResult
|
|
$Res call({double? latitude, double? longitude});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$LocationCopyWithImpl<$Res, $Val extends Location>
|
|
implements $LocationCopyWith<$Res> {
|
|
_$LocationCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? latitude = freezed,
|
|
Object? longitude = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
latitude: freezed == latitude
|
|
? _value.latitude
|
|
: latitude // ignore: cast_nullable_to_non_nullable
|
|
as double?,
|
|
longitude: freezed == longitude
|
|
? _value.longitude
|
|
: longitude // ignore: cast_nullable_to_non_nullable
|
|
as double?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$LocationImplCopyWith<$Res>
|
|
implements $LocationCopyWith<$Res> {
|
|
factory _$$LocationImplCopyWith(
|
|
_$LocationImpl value, $Res Function(_$LocationImpl) then) =
|
|
__$$LocationImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({double? latitude, double? longitude});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$LocationImplCopyWithImpl<$Res>
|
|
extends _$LocationCopyWithImpl<$Res, _$LocationImpl>
|
|
implements _$$LocationImplCopyWith<$Res> {
|
|
__$$LocationImplCopyWithImpl(
|
|
_$LocationImpl _value, $Res Function(_$LocationImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? latitude = freezed,
|
|
Object? longitude = freezed,
|
|
}) {
|
|
return _then(_$LocationImpl(
|
|
latitude: freezed == latitude
|
|
? _value.latitude
|
|
: latitude // ignore: cast_nullable_to_non_nullable
|
|
as double?,
|
|
longitude: freezed == longitude
|
|
? _value.longitude
|
|
: longitude // ignore: cast_nullable_to_non_nullable
|
|
as double?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$LocationImpl implements _Location {
|
|
const _$LocationImpl({required this.latitude, required this.longitude});
|
|
|
|
factory _$LocationImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$LocationImplFromJson(json);
|
|
|
|
@override
|
|
final double? latitude;
|
|
@override
|
|
final double? longitude;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'Location(latitude: $latitude, longitude: $longitude)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$LocationImpl &&
|
|
(identical(other.latitude, latitude) ||
|
|
other.latitude == latitude) &&
|
|
(identical(other.longitude, longitude) ||
|
|
other.longitude == longitude));
|
|
}
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, latitude, longitude);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$LocationImplCopyWith<_$LocationImpl> get copyWith =>
|
|
__$$LocationImplCopyWithImpl<_$LocationImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$LocationImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _Location implements Location {
|
|
const factory _Location(
|
|
{required final double? latitude,
|
|
required final double? longitude}) = _$LocationImpl;
|
|
|
|
factory _Location.fromJson(Map<String, dynamic> json) =
|
|
_$LocationImpl.fromJson;
|
|
|
|
@override
|
|
double? get latitude;
|
|
@override
|
|
double? get longitude;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$LocationImplCopyWith<_$LocationImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|