From 8058616fc7aa668bbbd8df7a4d5f2dd67c926dba Mon Sep 17 00:00:00 2001 From: Federico Correa Date: Mon, 3 Jun 2024 13:50:08 -0300 Subject: [PATCH] fix: generated code --- .../common/network_exceptions.freezed.dart | 419 +++++++++--------- lib/core/model/project.freezed.dart | 45 +- lib/core/model/project.g.dart | 7 +- .../model/service/auth_models.freezed.dart | 91 ++-- lib/core/model/service/auth_models.g.dart | 13 +- .../service/service_response.freezed.dart | 85 ++-- lib/core/model/user.freezed.dart | 42 +- lib/core/model/user.g.dart | 5 +- lib/gen/assets.gen.dart | 76 ---- .../error_handler/general_error.freezed.dart | 38 +- .../global_event_handler_cubit.freezed.dart | 210 ++++----- lib/ui/signin/signin_cubit.freezed.dart | 38 +- lib/ui/welcome/welcome_cubit.freezed.dart | 39 +- 13 files changed, 528 insertions(+), 580 deletions(-) diff --git a/lib/core/common/network_exceptions.freezed.dart b/lib/core/common/network_exceptions.freezed.dart index e99bd672..ed098970 100644 --- a/lib/core/common/network_exceptions.freezed.dart +++ b/lib/core/common/network_exceptions.freezed.dart @@ -12,7 +12,7 @@ part of 'network_exceptions.dart'; T _$identity(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#custom-getters-and-methods'); + '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'); /// @nodoc mixin _$NetworkException { @@ -147,20 +147,20 @@ class _$NetworkExceptionCopyWithImpl<$Res, $Val extends NetworkException> } /// @nodoc -abstract class _$$UnauthorizedRequestCopyWith<$Res> { - factory _$$UnauthorizedRequestCopyWith(_$UnauthorizedRequest value, - $Res Function(_$UnauthorizedRequest) then) = - __$$UnauthorizedRequestCopyWithImpl<$Res>; +abstract class _$$UnauthorizedRequestImplCopyWith<$Res> { + factory _$$UnauthorizedRequestImplCopyWith(_$UnauthorizedRequestImpl value, + $Res Function(_$UnauthorizedRequestImpl) then) = + __$$UnauthorizedRequestImplCopyWithImpl<$Res>; @useResult $Res call({dynamic body}); } /// @nodoc -class __$$UnauthorizedRequestCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$UnauthorizedRequest> - implements _$$UnauthorizedRequestCopyWith<$Res> { - __$$UnauthorizedRequestCopyWithImpl( - _$UnauthorizedRequest _value, $Res Function(_$UnauthorizedRequest) _then) +class __$$UnauthorizedRequestImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$UnauthorizedRequestImpl> + implements _$$UnauthorizedRequestImplCopyWith<$Res> { + __$$UnauthorizedRequestImplCopyWithImpl(_$UnauthorizedRequestImpl _value, + $Res Function(_$UnauthorizedRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -168,7 +168,7 @@ class __$$UnauthorizedRequestCopyWithImpl<$Res> $Res call({ Object? body = freezed, }) { - return _then(_$UnauthorizedRequest( + return _then(_$UnauthorizedRequestImpl( freezed == body ? _value.body! : body, )); } @@ -176,8 +176,8 @@ class __$$UnauthorizedRequestCopyWithImpl<$Res> /// @nodoc -class _$UnauthorizedRequest implements UnauthorizedRequest { - const _$UnauthorizedRequest(this.body); +class _$UnauthorizedRequestImpl implements UnauthorizedRequest { + const _$UnauthorizedRequestImpl(this.body); @override final dynamic body; @@ -188,10 +188,10 @@ class _$UnauthorizedRequest implements UnauthorizedRequest { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$UnauthorizedRequest && + other is _$UnauthorizedRequestImpl && const DeepCollectionEquality().equals(other.body, body)); } @@ -202,8 +202,8 @@ class _$UnauthorizedRequest implements UnauthorizedRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$UnauthorizedRequestCopyWith<_$UnauthorizedRequest> get copyWith => - __$$UnauthorizedRequestCopyWithImpl<_$UnauthorizedRequest>( + _$$UnauthorizedRequestImplCopyWith<_$UnauthorizedRequestImpl> get copyWith => + __$$UnauthorizedRequestImplCopyWithImpl<_$UnauthorizedRequestImpl>( this, _$identity); @override @@ -342,34 +342,35 @@ class _$UnauthorizedRequest implements UnauthorizedRequest { } abstract class UnauthorizedRequest implements NetworkException { - const factory UnauthorizedRequest(final dynamic body) = _$UnauthorizedRequest; + const factory UnauthorizedRequest(final dynamic body) = + _$UnauthorizedRequestImpl; dynamic get body; @JsonKey(ignore: true) - _$$UnauthorizedRequestCopyWith<_$UnauthorizedRequest> get copyWith => + _$$UnauthorizedRequestImplCopyWith<_$UnauthorizedRequestImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$BadRequestCopyWith<$Res> { - factory _$$BadRequestCopyWith( - _$BadRequest value, $Res Function(_$BadRequest) then) = - __$$BadRequestCopyWithImpl<$Res>; +abstract class _$$BadRequestImplCopyWith<$Res> { + factory _$$BadRequestImplCopyWith( + _$BadRequestImpl value, $Res Function(_$BadRequestImpl) then) = + __$$BadRequestImplCopyWithImpl<$Res>; } /// @nodoc -class __$$BadRequestCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$BadRequest> - implements _$$BadRequestCopyWith<$Res> { - __$$BadRequestCopyWithImpl( - _$BadRequest _value, $Res Function(_$BadRequest) _then) +class __$$BadRequestImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$BadRequestImpl> + implements _$$BadRequestImplCopyWith<$Res> { + __$$BadRequestImplCopyWithImpl( + _$BadRequestImpl _value, $Res Function(_$BadRequestImpl) _then) : super(_value, _then); } /// @nodoc -class _$BadRequest implements BadRequest { - const _$BadRequest(); +class _$BadRequestImpl implements BadRequest { + const _$BadRequestImpl(); @override String toString() { @@ -377,9 +378,9 @@ class _$BadRequest implements BadRequest { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$BadRequest); + (other.runtimeType == runtimeType && other is _$BadRequestImpl); } @override @@ -521,23 +522,24 @@ class _$BadRequest implements BadRequest { } abstract class BadRequest implements NetworkException { - const factory BadRequest() = _$BadRequest; + const factory BadRequest() = _$BadRequestImpl; } /// @nodoc -abstract class _$$NotFoundCopyWith<$Res> { - factory _$$NotFoundCopyWith( - _$NotFound value, $Res Function(_$NotFound) then) = - __$$NotFoundCopyWithImpl<$Res>; +abstract class _$$NotFoundImplCopyWith<$Res> { + factory _$$NotFoundImplCopyWith( + _$NotFoundImpl value, $Res Function(_$NotFoundImpl) then) = + __$$NotFoundImplCopyWithImpl<$Res>; @useResult $Res call({String reason}); } /// @nodoc -class __$$NotFoundCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$NotFound> - implements _$$NotFoundCopyWith<$Res> { - __$$NotFoundCopyWithImpl(_$NotFound _value, $Res Function(_$NotFound) _then) +class __$$NotFoundImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$NotFoundImpl> + implements _$$NotFoundImplCopyWith<$Res> { + __$$NotFoundImplCopyWithImpl( + _$NotFoundImpl _value, $Res Function(_$NotFoundImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -545,7 +547,7 @@ class __$$NotFoundCopyWithImpl<$Res> $Res call({ Object? reason = null, }) { - return _then(_$NotFound( + return _then(_$NotFoundImpl( null == reason ? _value.reason : reason // ignore: cast_nullable_to_non_nullable @@ -556,8 +558,8 @@ class __$$NotFoundCopyWithImpl<$Res> /// @nodoc -class _$NotFound implements NotFound { - const _$NotFound(this.reason); +class _$NotFoundImpl implements NotFound { + const _$NotFoundImpl(this.reason); @override final String reason; @@ -568,10 +570,10 @@ class _$NotFound implements NotFound { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$NotFound && + other is _$NotFoundImpl && (identical(other.reason, reason) || other.reason == reason)); } @@ -581,8 +583,8 @@ class _$NotFound implements NotFound { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$NotFoundCopyWith<_$NotFound> get copyWith => - __$$NotFoundCopyWithImpl<_$NotFound>(this, _$identity); + _$$NotFoundImplCopyWith<_$NotFoundImpl> get copyWith => + __$$NotFoundImplCopyWithImpl<_$NotFoundImpl>(this, _$identity); @override @optionalTypeArgs @@ -720,34 +722,34 @@ class _$NotFound implements NotFound { } abstract class NotFound implements NetworkException { - const factory NotFound(final String reason) = _$NotFound; + const factory NotFound(final String reason) = _$NotFoundImpl; String get reason; @JsonKey(ignore: true) - _$$NotFoundCopyWith<_$NotFound> get copyWith => + _$$NotFoundImplCopyWith<_$NotFoundImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$MethodNotAllowedCopyWith<$Res> { - factory _$$MethodNotAllowedCopyWith( - _$MethodNotAllowed value, $Res Function(_$MethodNotAllowed) then) = - __$$MethodNotAllowedCopyWithImpl<$Res>; +abstract class _$$MethodNotAllowedImplCopyWith<$Res> { + factory _$$MethodNotAllowedImplCopyWith(_$MethodNotAllowedImpl value, + $Res Function(_$MethodNotAllowedImpl) then) = + __$$MethodNotAllowedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$MethodNotAllowedCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$MethodNotAllowed> - implements _$$MethodNotAllowedCopyWith<$Res> { - __$$MethodNotAllowedCopyWithImpl( - _$MethodNotAllowed _value, $Res Function(_$MethodNotAllowed) _then) +class __$$MethodNotAllowedImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$MethodNotAllowedImpl> + implements _$$MethodNotAllowedImplCopyWith<$Res> { + __$$MethodNotAllowedImplCopyWithImpl(_$MethodNotAllowedImpl _value, + $Res Function(_$MethodNotAllowedImpl) _then) : super(_value, _then); } /// @nodoc -class _$MethodNotAllowed implements MethodNotAllowed { - const _$MethodNotAllowed(); +class _$MethodNotAllowedImpl implements MethodNotAllowed { + const _$MethodNotAllowedImpl(); @override String toString() { @@ -755,9 +757,9 @@ class _$MethodNotAllowed implements MethodNotAllowed { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$MethodNotAllowed); + (other.runtimeType == runtimeType && other is _$MethodNotAllowedImpl); } @override @@ -899,29 +901,29 @@ class _$MethodNotAllowed implements MethodNotAllowed { } abstract class MethodNotAllowed implements NetworkException { - const factory MethodNotAllowed() = _$MethodNotAllowed; + const factory MethodNotAllowed() = _$MethodNotAllowedImpl; } /// @nodoc -abstract class _$$NotAcceptableCopyWith<$Res> { - factory _$$NotAcceptableCopyWith( - _$NotAcceptable value, $Res Function(_$NotAcceptable) then) = - __$$NotAcceptableCopyWithImpl<$Res>; +abstract class _$$NotAcceptableImplCopyWith<$Res> { + factory _$$NotAcceptableImplCopyWith( + _$NotAcceptableImpl value, $Res Function(_$NotAcceptableImpl) then) = + __$$NotAcceptableImplCopyWithImpl<$Res>; } /// @nodoc -class __$$NotAcceptableCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$NotAcceptable> - implements _$$NotAcceptableCopyWith<$Res> { - __$$NotAcceptableCopyWithImpl( - _$NotAcceptable _value, $Res Function(_$NotAcceptable) _then) +class __$$NotAcceptableImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$NotAcceptableImpl> + implements _$$NotAcceptableImplCopyWith<$Res> { + __$$NotAcceptableImplCopyWithImpl( + _$NotAcceptableImpl _value, $Res Function(_$NotAcceptableImpl) _then) : super(_value, _then); } /// @nodoc -class _$NotAcceptable implements NotAcceptable { - const _$NotAcceptable(); +class _$NotAcceptableImpl implements NotAcceptable { + const _$NotAcceptableImpl(); @override String toString() { @@ -929,9 +931,9 @@ class _$NotAcceptable implements NotAcceptable { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$NotAcceptable); + (other.runtimeType == runtimeType && other is _$NotAcceptableImpl); } @override @@ -1073,28 +1075,29 @@ class _$NotAcceptable implements NotAcceptable { } abstract class NotAcceptable implements NetworkException { - const factory NotAcceptable() = _$NotAcceptable; + const factory NotAcceptable() = _$NotAcceptableImpl; } /// @nodoc -abstract class _$$ConflictCopyWith<$Res> { - factory _$$ConflictCopyWith( - _$Conflict value, $Res Function(_$Conflict) then) = - __$$ConflictCopyWithImpl<$Res>; +abstract class _$$ConflictImplCopyWith<$Res> { + factory _$$ConflictImplCopyWith( + _$ConflictImpl value, $Res Function(_$ConflictImpl) then) = + __$$ConflictImplCopyWithImpl<$Res>; } /// @nodoc -class __$$ConflictCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$Conflict> - implements _$$ConflictCopyWith<$Res> { - __$$ConflictCopyWithImpl(_$Conflict _value, $Res Function(_$Conflict) _then) +class __$$ConflictImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$ConflictImpl> + implements _$$ConflictImplCopyWith<$Res> { + __$$ConflictImplCopyWithImpl( + _$ConflictImpl _value, $Res Function(_$ConflictImpl) _then) : super(_value, _then); } /// @nodoc -class _$Conflict implements Conflict { - const _$Conflict(); +class _$ConflictImpl implements Conflict { + const _$ConflictImpl(); @override String toString() { @@ -1102,9 +1105,9 @@ class _$Conflict implements Conflict { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$Conflict); + (other.runtimeType == runtimeType && other is _$ConflictImpl); } @override @@ -1246,29 +1249,29 @@ class _$Conflict implements Conflict { } abstract class Conflict implements NetworkException { - const factory Conflict() = _$Conflict; + const factory Conflict() = _$ConflictImpl; } /// @nodoc -abstract class _$$InternalServerErrorCopyWith<$Res> { - factory _$$InternalServerErrorCopyWith(_$InternalServerError value, - $Res Function(_$InternalServerError) then) = - __$$InternalServerErrorCopyWithImpl<$Res>; +abstract class _$$InternalServerErrorImplCopyWith<$Res> { + factory _$$InternalServerErrorImplCopyWith(_$InternalServerErrorImpl value, + $Res Function(_$InternalServerErrorImpl) then) = + __$$InternalServerErrorImplCopyWithImpl<$Res>; } /// @nodoc -class __$$InternalServerErrorCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$InternalServerError> - implements _$$InternalServerErrorCopyWith<$Res> { - __$$InternalServerErrorCopyWithImpl( - _$InternalServerError _value, $Res Function(_$InternalServerError) _then) +class __$$InternalServerErrorImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$InternalServerErrorImpl> + implements _$$InternalServerErrorImplCopyWith<$Res> { + __$$InternalServerErrorImplCopyWithImpl(_$InternalServerErrorImpl _value, + $Res Function(_$InternalServerErrorImpl) _then) : super(_value, _then); } /// @nodoc -class _$InternalServerError implements InternalServerError { - const _$InternalServerError(); +class _$InternalServerErrorImpl implements InternalServerError { + const _$InternalServerErrorImpl(); @override String toString() { @@ -1276,9 +1279,10 @@ class _$InternalServerError implements InternalServerError { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$InternalServerError); + (other.runtimeType == runtimeType && + other is _$InternalServerErrorImpl); } @override @@ -1420,29 +1424,29 @@ class _$InternalServerError implements InternalServerError { } abstract class InternalServerError implements NetworkException { - const factory InternalServerError() = _$InternalServerError; + const factory InternalServerError() = _$InternalServerErrorImpl; } /// @nodoc -abstract class _$$NotImplementedCopyWith<$Res> { - factory _$$NotImplementedCopyWith( - _$NotImplemented value, $Res Function(_$NotImplemented) then) = - __$$NotImplementedCopyWithImpl<$Res>; +abstract class _$$NotImplementedImplCopyWith<$Res> { + factory _$$NotImplementedImplCopyWith(_$NotImplementedImpl value, + $Res Function(_$NotImplementedImpl) then) = + __$$NotImplementedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$NotImplementedCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$NotImplemented> - implements _$$NotImplementedCopyWith<$Res> { - __$$NotImplementedCopyWithImpl( - _$NotImplemented _value, $Res Function(_$NotImplemented) _then) +class __$$NotImplementedImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$NotImplementedImpl> + implements _$$NotImplementedImplCopyWith<$Res> { + __$$NotImplementedImplCopyWithImpl( + _$NotImplementedImpl _value, $Res Function(_$NotImplementedImpl) _then) : super(_value, _then); } /// @nodoc -class _$NotImplemented implements NotImplemented { - const _$NotImplemented(); +class _$NotImplementedImpl implements NotImplemented { + const _$NotImplementedImpl(); @override String toString() { @@ -1450,9 +1454,9 @@ class _$NotImplemented implements NotImplemented { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$NotImplemented); + (other.runtimeType == runtimeType && other is _$NotImplementedImpl); } @override @@ -1594,29 +1598,29 @@ class _$NotImplemented implements NotImplemented { } abstract class NotImplemented implements NetworkException { - const factory NotImplemented() = _$NotImplemented; + const factory NotImplemented() = _$NotImplementedImpl; } /// @nodoc -abstract class _$$ServiceUnavailableCopyWith<$Res> { - factory _$$ServiceUnavailableCopyWith(_$ServiceUnavailable value, - $Res Function(_$ServiceUnavailable) then) = - __$$ServiceUnavailableCopyWithImpl<$Res>; +abstract class _$$ServiceUnavailableImplCopyWith<$Res> { + factory _$$ServiceUnavailableImplCopyWith(_$ServiceUnavailableImpl value, + $Res Function(_$ServiceUnavailableImpl) then) = + __$$ServiceUnavailableImplCopyWithImpl<$Res>; } /// @nodoc -class __$$ServiceUnavailableCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$ServiceUnavailable> - implements _$$ServiceUnavailableCopyWith<$Res> { - __$$ServiceUnavailableCopyWithImpl( - _$ServiceUnavailable _value, $Res Function(_$ServiceUnavailable) _then) +class __$$ServiceUnavailableImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$ServiceUnavailableImpl> + implements _$$ServiceUnavailableImplCopyWith<$Res> { + __$$ServiceUnavailableImplCopyWithImpl(_$ServiceUnavailableImpl _value, + $Res Function(_$ServiceUnavailableImpl) _then) : super(_value, _then); } /// @nodoc -class _$ServiceUnavailable implements ServiceUnavailable { - const _$ServiceUnavailable(); +class _$ServiceUnavailableImpl implements ServiceUnavailable { + const _$ServiceUnavailableImpl(); @override String toString() { @@ -1624,9 +1628,9 @@ class _$ServiceUnavailable implements ServiceUnavailable { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$ServiceUnavailable); + (other.runtimeType == runtimeType && other is _$ServiceUnavailableImpl); } @override @@ -1768,29 +1772,29 @@ class _$ServiceUnavailable implements ServiceUnavailable { } abstract class ServiceUnavailable implements NetworkException { - const factory ServiceUnavailable() = _$ServiceUnavailable; + const factory ServiceUnavailable() = _$ServiceUnavailableImpl; } /// @nodoc -abstract class _$$NoInternetConnectionCopyWith<$Res> { - factory _$$NoInternetConnectionCopyWith(_$NoInternetConnection value, - $Res Function(_$NoInternetConnection) then) = - __$$NoInternetConnectionCopyWithImpl<$Res>; +abstract class _$$NoInternetConnectionImplCopyWith<$Res> { + factory _$$NoInternetConnectionImplCopyWith(_$NoInternetConnectionImpl value, + $Res Function(_$NoInternetConnectionImpl) then) = + __$$NoInternetConnectionImplCopyWithImpl<$Res>; } /// @nodoc -class __$$NoInternetConnectionCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$NoInternetConnection> - implements _$$NoInternetConnectionCopyWith<$Res> { - __$$NoInternetConnectionCopyWithImpl(_$NoInternetConnection _value, - $Res Function(_$NoInternetConnection) _then) +class __$$NoInternetConnectionImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$NoInternetConnectionImpl> + implements _$$NoInternetConnectionImplCopyWith<$Res> { + __$$NoInternetConnectionImplCopyWithImpl(_$NoInternetConnectionImpl _value, + $Res Function(_$NoInternetConnectionImpl) _then) : super(_value, _then); } /// @nodoc -class _$NoInternetConnection implements NoInternetConnection { - const _$NoInternetConnection(); +class _$NoInternetConnectionImpl implements NoInternetConnection { + const _$NoInternetConnectionImpl(); @override String toString() { @@ -1798,9 +1802,10 @@ class _$NoInternetConnection implements NoInternetConnection { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$NoInternetConnection); + (other.runtimeType == runtimeType && + other is _$NoInternetConnectionImpl); } @override @@ -1942,29 +1947,29 @@ class _$NoInternetConnection implements NoInternetConnection { } abstract class NoInternetConnection implements NetworkException { - const factory NoInternetConnection() = _$NoInternetConnection; + const factory NoInternetConnection() = _$NoInternetConnectionImpl; } /// @nodoc -abstract class _$$FormatExceptionCopyWith<$Res> { - factory _$$FormatExceptionCopyWith( - _$FormatException value, $Res Function(_$FormatException) then) = - __$$FormatExceptionCopyWithImpl<$Res>; +abstract class _$$FormatExceptionImplCopyWith<$Res> { + factory _$$FormatExceptionImplCopyWith(_$FormatExceptionImpl value, + $Res Function(_$FormatExceptionImpl) then) = + __$$FormatExceptionImplCopyWithImpl<$Res>; } /// @nodoc -class __$$FormatExceptionCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$FormatException> - implements _$$FormatExceptionCopyWith<$Res> { - __$$FormatExceptionCopyWithImpl( - _$FormatException _value, $Res Function(_$FormatException) _then) +class __$$FormatExceptionImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$FormatExceptionImpl> + implements _$$FormatExceptionImplCopyWith<$Res> { + __$$FormatExceptionImplCopyWithImpl( + _$FormatExceptionImpl _value, $Res Function(_$FormatExceptionImpl) _then) : super(_value, _then); } /// @nodoc -class _$FormatException implements FormatException { - const _$FormatException(); +class _$FormatExceptionImpl implements FormatException { + const _$FormatExceptionImpl(); @override String toString() { @@ -1972,9 +1977,9 @@ class _$FormatException implements FormatException { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$FormatException); + (other.runtimeType == runtimeType && other is _$FormatExceptionImpl); } @override @@ -2116,29 +2121,29 @@ class _$FormatException implements FormatException { } abstract class FormatException implements NetworkException { - const factory FormatException() = _$FormatException; + const factory FormatException() = _$FormatExceptionImpl; } /// @nodoc -abstract class _$$UnableToProcessCopyWith<$Res> { - factory _$$UnableToProcessCopyWith( - _$UnableToProcess value, $Res Function(_$UnableToProcess) then) = - __$$UnableToProcessCopyWithImpl<$Res>; +abstract class _$$UnableToProcessImplCopyWith<$Res> { + factory _$$UnableToProcessImplCopyWith(_$UnableToProcessImpl value, + $Res Function(_$UnableToProcessImpl) then) = + __$$UnableToProcessImplCopyWithImpl<$Res>; } /// @nodoc -class __$$UnableToProcessCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$UnableToProcess> - implements _$$UnableToProcessCopyWith<$Res> { - __$$UnableToProcessCopyWithImpl( - _$UnableToProcess _value, $Res Function(_$UnableToProcess) _then) +class __$$UnableToProcessImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$UnableToProcessImpl> + implements _$$UnableToProcessImplCopyWith<$Res> { + __$$UnableToProcessImplCopyWithImpl( + _$UnableToProcessImpl _value, $Res Function(_$UnableToProcessImpl) _then) : super(_value, _then); } /// @nodoc -class _$UnableToProcess implements UnableToProcess { - const _$UnableToProcess(); +class _$UnableToProcessImpl implements UnableToProcess { + const _$UnableToProcessImpl(); @override String toString() { @@ -2146,9 +2151,9 @@ class _$UnableToProcess implements UnableToProcess { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$UnableToProcess); + (other.runtimeType == runtimeType && other is _$UnableToProcessImpl); } @override @@ -2290,24 +2295,24 @@ class _$UnableToProcess implements UnableToProcess { } abstract class UnableToProcess implements NetworkException { - const factory UnableToProcess() = _$UnableToProcess; + const factory UnableToProcess() = _$UnableToProcessImpl; } /// @nodoc -abstract class _$$DefaultErrorCopyWith<$Res> { - factory _$$DefaultErrorCopyWith( - _$DefaultError value, $Res Function(_$DefaultError) then) = - __$$DefaultErrorCopyWithImpl<$Res>; +abstract class _$$DefaultErrorImplCopyWith<$Res> { + factory _$$DefaultErrorImplCopyWith( + _$DefaultErrorImpl value, $Res Function(_$DefaultErrorImpl) then) = + __$$DefaultErrorImplCopyWithImpl<$Res>; @useResult $Res call({int? code, String? error}); } /// @nodoc -class __$$DefaultErrorCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$DefaultError> - implements _$$DefaultErrorCopyWith<$Res> { - __$$DefaultErrorCopyWithImpl( - _$DefaultError _value, $Res Function(_$DefaultError) _then) +class __$$DefaultErrorImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$DefaultErrorImpl> + implements _$$DefaultErrorImplCopyWith<$Res> { + __$$DefaultErrorImplCopyWithImpl( + _$DefaultErrorImpl _value, $Res Function(_$DefaultErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2316,7 +2321,7 @@ class __$$DefaultErrorCopyWithImpl<$Res> Object? code = freezed, Object? error = freezed, }) { - return _then(_$DefaultError( + return _then(_$DefaultErrorImpl( freezed == code ? _value.code : code // ignore: cast_nullable_to_non_nullable @@ -2331,8 +2336,8 @@ class __$$DefaultErrorCopyWithImpl<$Res> /// @nodoc -class _$DefaultError implements DefaultError { - const _$DefaultError(this.code, this.error); +class _$DefaultErrorImpl implements DefaultError { + const _$DefaultErrorImpl(this.code, this.error); @override final int? code; @@ -2345,10 +2350,10 @@ class _$DefaultError implements DefaultError { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$DefaultError && + other is _$DefaultErrorImpl && (identical(other.code, code) || other.code == code) && (identical(other.error, error) || other.error == error)); } @@ -2359,8 +2364,8 @@ class _$DefaultError implements DefaultError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$DefaultErrorCopyWith<_$DefaultError> get copyWith => - __$$DefaultErrorCopyWithImpl<_$DefaultError>(this, _$identity); + _$$DefaultErrorImplCopyWith<_$DefaultErrorImpl> get copyWith => + __$$DefaultErrorImplCopyWithImpl<_$DefaultErrorImpl>(this, _$identity); @override @optionalTypeArgs @@ -2499,35 +2504,35 @@ class _$DefaultError implements DefaultError { abstract class DefaultError implements NetworkException { const factory DefaultError(final int? code, final String? error) = - _$DefaultError; + _$DefaultErrorImpl; int? get code; String? get error; @JsonKey(ignore: true) - _$$DefaultErrorCopyWith<_$DefaultError> get copyWith => + _$$DefaultErrorImplCopyWith<_$DefaultErrorImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$UnexpectedErrorCopyWith<$Res> { - factory _$$UnexpectedErrorCopyWith( - _$UnexpectedError value, $Res Function(_$UnexpectedError) then) = - __$$UnexpectedErrorCopyWithImpl<$Res>; +abstract class _$$UnexpectedErrorImplCopyWith<$Res> { + factory _$$UnexpectedErrorImplCopyWith(_$UnexpectedErrorImpl value, + $Res Function(_$UnexpectedErrorImpl) then) = + __$$UnexpectedErrorImplCopyWithImpl<$Res>; } /// @nodoc -class __$$UnexpectedErrorCopyWithImpl<$Res> - extends _$NetworkExceptionCopyWithImpl<$Res, _$UnexpectedError> - implements _$$UnexpectedErrorCopyWith<$Res> { - __$$UnexpectedErrorCopyWithImpl( - _$UnexpectedError _value, $Res Function(_$UnexpectedError) _then) +class __$$UnexpectedErrorImplCopyWithImpl<$Res> + extends _$NetworkExceptionCopyWithImpl<$Res, _$UnexpectedErrorImpl> + implements _$$UnexpectedErrorImplCopyWith<$Res> { + __$$UnexpectedErrorImplCopyWithImpl( + _$UnexpectedErrorImpl _value, $Res Function(_$UnexpectedErrorImpl) _then) : super(_value, _then); } /// @nodoc -class _$UnexpectedError implements UnexpectedError { - const _$UnexpectedError(); +class _$UnexpectedErrorImpl implements UnexpectedError { + const _$UnexpectedErrorImpl(); @override String toString() { @@ -2535,9 +2540,9 @@ class _$UnexpectedError implements UnexpectedError { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$UnexpectedError); + (other.runtimeType == runtimeType && other is _$UnexpectedErrorImpl); } @override @@ -2679,5 +2684,5 @@ class _$UnexpectedError implements UnexpectedError { } abstract class UnexpectedError implements NetworkException { - const factory UnexpectedError() = _$UnexpectedError; + const factory UnexpectedError() = _$UnexpectedErrorImpl; } diff --git a/lib/core/model/project.freezed.dart b/lib/core/model/project.freezed.dart index e5847045..2e746eb2 100644 --- a/lib/core/model/project.freezed.dart +++ b/lib/core/model/project.freezed.dart @@ -12,7 +12,7 @@ part of 'project.dart'; T _$identity(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#custom-getters-and-methods'); + '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'); Project _$ProjectFromJson(Map json) { return _Project.fromJson(json); @@ -96,10 +96,10 @@ class _$ProjectCopyWithImpl<$Res, $Val extends Project> } /// @nodoc -abstract class _$$_ProjectCopyWith<$Res> implements $ProjectCopyWith<$Res> { - factory _$$_ProjectCopyWith( - _$_Project value, $Res Function(_$_Project) then) = - __$$_ProjectCopyWithImpl<$Res>; +abstract class _$$ProjectImplCopyWith<$Res> implements $ProjectCopyWith<$Res> { + factory _$$ProjectImplCopyWith( + _$ProjectImpl value, $Res Function(_$ProjectImpl) then) = + __$$ProjectImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -112,10 +112,11 @@ abstract class _$$_ProjectCopyWith<$Res> implements $ProjectCopyWith<$Res> { } /// @nodoc -class __$$_ProjectCopyWithImpl<$Res> - extends _$ProjectCopyWithImpl<$Res, _$_Project> - implements _$$_ProjectCopyWith<$Res> { - __$$_ProjectCopyWithImpl(_$_Project _value, $Res Function(_$_Project) _then) +class __$$ProjectImplCopyWithImpl<$Res> + extends _$ProjectCopyWithImpl<$Res, _$ProjectImpl> + implements _$$ProjectImplCopyWith<$Res> { + __$$ProjectImplCopyWithImpl( + _$ProjectImpl _value, $Res Function(_$ProjectImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -128,7 +129,7 @@ class __$$_ProjectCopyWithImpl<$Res> Object? imageUrl = null, Object? language = null, }) { - return _then(_$_Project( + return _then(_$ProjectImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -160,8 +161,8 @@ class __$$_ProjectCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_Project implements _Project { - _$_Project( +class _$ProjectImpl implements _Project { + _$ProjectImpl( {required this.id, required this.name, required this.description, @@ -169,8 +170,8 @@ class _$_Project implements _Project { required this.imageUrl, required this.language}); - factory _$_Project.fromJson(Map json) => - _$$_ProjectFromJson(json); + factory _$ProjectImpl.fromJson(Map json) => + _$$ProjectImplFromJson(json); @override final int id; @@ -191,10 +192,10 @@ class _$_Project implements _Project { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Project && + other is _$ProjectImpl && (identical(other.id, id) || other.id == id) && (identical(other.name, name) || other.name == name) && (identical(other.description, description) || @@ -214,12 +215,12 @@ class _$_Project implements _Project { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ProjectCopyWith<_$_Project> get copyWith => - __$$_ProjectCopyWithImpl<_$_Project>(this, _$identity); + _$$ProjectImplCopyWith<_$ProjectImpl> get copyWith => + __$$ProjectImplCopyWithImpl<_$ProjectImpl>(this, _$identity); @override Map toJson() { - return _$$_ProjectToJson( + return _$$ProjectImplToJson( this, ); } @@ -232,9 +233,9 @@ abstract class _Project implements Project { required final String description, required final String url, required final String imageUrl, - required final String language}) = _$_Project; + required final String language}) = _$ProjectImpl; - factory _Project.fromJson(Map json) = _$_Project.fromJson; + factory _Project.fromJson(Map json) = _$ProjectImpl.fromJson; @override int get id; @@ -250,6 +251,6 @@ abstract class _Project implements Project { String get language; @override @JsonKey(ignore: true) - _$$_ProjectCopyWith<_$_Project> get copyWith => + _$$ProjectImplCopyWith<_$ProjectImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/core/model/project.g.dart b/lib/core/model/project.g.dart index 8cef53b2..364de6a1 100644 --- a/lib/core/model/project.g.dart +++ b/lib/core/model/project.g.dart @@ -6,8 +6,9 @@ part of 'project.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_Project _$$_ProjectFromJson(Map json) => _$_Project( - id: json['id'] as int, +_$ProjectImpl _$$ProjectImplFromJson(Map json) => + _$ProjectImpl( + id: (json['id'] as num).toInt(), name: json['name'] as String, description: json['description'] as String, url: json['url'] as String, @@ -15,7 +16,7 @@ _$_Project _$$_ProjectFromJson(Map json) => _$_Project( language: json['language'] as String, ); -Map _$$_ProjectToJson(_$_Project instance) => +Map _$$ProjectImplToJson(_$ProjectImpl instance) => { 'id': instance.id, 'name': instance.name, diff --git a/lib/core/model/service/auth_models.freezed.dart b/lib/core/model/service/auth_models.freezed.dart index f0800500..77fd7781 100644 --- a/lib/core/model/service/auth_models.freezed.dart +++ b/lib/core/model/service/auth_models.freezed.dart @@ -12,7 +12,7 @@ part of 'auth_models.dart'; T _$identity(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#custom-getters-and-methods'); + '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'); SignInResponse _$SignInResponseFromJson(Map json) { return _SignInResponse.fromJson(json); @@ -78,11 +78,11 @@ class _$SignInResponseCopyWithImpl<$Res, $Val extends SignInResponse> } /// @nodoc -abstract class _$$_SignInResponseCopyWith<$Res> +abstract class _$$SignInResponseImplCopyWith<$Res> implements $SignInResponseCopyWith<$Res> { - factory _$$_SignInResponseCopyWith( - _$_SignInResponse value, $Res Function(_$_SignInResponse) then) = - __$$_SignInResponseCopyWithImpl<$Res>; + factory _$$SignInResponseImplCopyWith(_$SignInResponseImpl value, + $Res Function(_$SignInResponseImpl) then) = + __$$SignInResponseImplCopyWithImpl<$Res>; @override @useResult $Res call({String accessToken, User user}); @@ -92,11 +92,11 @@ abstract class _$$_SignInResponseCopyWith<$Res> } /// @nodoc -class __$$_SignInResponseCopyWithImpl<$Res> - extends _$SignInResponseCopyWithImpl<$Res, _$_SignInResponse> - implements _$$_SignInResponseCopyWith<$Res> { - __$$_SignInResponseCopyWithImpl( - _$_SignInResponse _value, $Res Function(_$_SignInResponse) _then) +class __$$SignInResponseImplCopyWithImpl<$Res> + extends _$SignInResponseCopyWithImpl<$Res, _$SignInResponseImpl> + implements _$$SignInResponseImplCopyWith<$Res> { + __$$SignInResponseImplCopyWithImpl( + _$SignInResponseImpl _value, $Res Function(_$SignInResponseImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -105,7 +105,7 @@ class __$$_SignInResponseCopyWithImpl<$Res> Object? accessToken = null, Object? user = null, }) { - return _then(_$_SignInResponse( + return _then(_$SignInResponseImpl( accessToken: null == accessToken ? _value.accessToken : accessToken // ignore: cast_nullable_to_non_nullable @@ -121,11 +121,11 @@ class __$$_SignInResponseCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SignInResponse implements _SignInResponse { - _$_SignInResponse({required this.accessToken, required this.user}); +class _$SignInResponseImpl implements _SignInResponse { + _$SignInResponseImpl({required this.accessToken, required this.user}); - factory _$_SignInResponse.fromJson(Map json) => - _$$_SignInResponseFromJson(json); + factory _$SignInResponseImpl.fromJson(Map json) => + _$$SignInResponseImplFromJson(json); @override final String accessToken; @@ -138,10 +138,10 @@ class _$_SignInResponse implements _SignInResponse { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SignInResponse && + other is _$SignInResponseImpl && (identical(other.accessToken, accessToken) || other.accessToken == accessToken) && (identical(other.user, user) || other.user == user)); @@ -154,12 +154,13 @@ class _$_SignInResponse implements _SignInResponse { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SignInResponseCopyWith<_$_SignInResponse> get copyWith => - __$$_SignInResponseCopyWithImpl<_$_SignInResponse>(this, _$identity); + _$$SignInResponseImplCopyWith<_$SignInResponseImpl> get copyWith => + __$$SignInResponseImplCopyWithImpl<_$SignInResponseImpl>( + this, _$identity); @override Map toJson() { - return _$$_SignInResponseToJson( + return _$$SignInResponseImplToJson( this, ); } @@ -168,10 +169,10 @@ class _$_SignInResponse implements _SignInResponse { abstract class _SignInResponse implements SignInResponse { factory _SignInResponse( {required final String accessToken, - required final User user}) = _$_SignInResponse; + required final User user}) = _$SignInResponseImpl; factory _SignInResponse.fromJson(Map json) = - _$_SignInResponse.fromJson; + _$SignInResponseImpl.fromJson; @override String get accessToken; @@ -179,7 +180,7 @@ abstract class _SignInResponse implements SignInResponse { User get user; @override @JsonKey(ignore: true) - _$$_SignInResponseCopyWith<_$_SignInResponse> get copyWith => + _$$SignInResponseImplCopyWith<_$SignInResponseImpl> get copyWith => throw _privateConstructorUsedError; } @@ -241,11 +242,11 @@ class _$SignInRequestCopyWithImpl<$Res, $Val extends SignInRequest> } /// @nodoc -abstract class _$$_SignInRequestCopyWith<$Res> +abstract class _$$SignInRequestImplCopyWith<$Res> implements $SignInRequestCopyWith<$Res> { - factory _$$_SignInRequestCopyWith( - _$_SignInRequest value, $Res Function(_$_SignInRequest) then) = - __$$_SignInRequestCopyWithImpl<$Res>; + factory _$$SignInRequestImplCopyWith( + _$SignInRequestImpl value, $Res Function(_$SignInRequestImpl) then) = + __$$SignInRequestImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -254,11 +255,11 @@ abstract class _$$_SignInRequestCopyWith<$Res> } /// @nodoc -class __$$_SignInRequestCopyWithImpl<$Res> - extends _$SignInRequestCopyWithImpl<$Res, _$_SignInRequest> - implements _$$_SignInRequestCopyWith<$Res> { - __$$_SignInRequestCopyWithImpl( - _$_SignInRequest _value, $Res Function(_$_SignInRequest) _then) +class __$$SignInRequestImplCopyWithImpl<$Res> + extends _$SignInRequestCopyWithImpl<$Res, _$SignInRequestImpl> + implements _$$SignInRequestImplCopyWith<$Res> { + __$$SignInRequestImplCopyWithImpl( + _$SignInRequestImpl _value, $Res Function(_$SignInRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -267,7 +268,7 @@ class __$$_SignInRequestCopyWithImpl<$Res> Object? email = null, Object? password = null, }) { - return _then(_$_SignInRequest( + return _then(_$SignInRequestImpl( email: null == email ? _value.email : email // ignore: cast_nullable_to_non_nullable @@ -283,13 +284,13 @@ class __$$_SignInRequestCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SignInRequest implements _SignInRequest { - _$_SignInRequest( +class _$SignInRequestImpl implements _SignInRequest { + _$SignInRequestImpl( {@JsonKey(name: 'email') required this.email, @JsonKey(name: 'password') required this.password}); - factory _$_SignInRequest.fromJson(Map json) => - _$$_SignInRequestFromJson(json); + factory _$SignInRequestImpl.fromJson(Map json) => + _$$SignInRequestImplFromJson(json); @override @JsonKey(name: 'email') @@ -304,10 +305,10 @@ class _$_SignInRequest implements _SignInRequest { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SignInRequest && + other is _$SignInRequestImpl && (identical(other.email, email) || other.email == email) && (identical(other.password, password) || other.password == password)); @@ -320,12 +321,12 @@ class _$_SignInRequest implements _SignInRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SignInRequestCopyWith<_$_SignInRequest> get copyWith => - __$$_SignInRequestCopyWithImpl<_$_SignInRequest>(this, _$identity); + _$$SignInRequestImplCopyWith<_$SignInRequestImpl> get copyWith => + __$$SignInRequestImplCopyWithImpl<_$SignInRequestImpl>(this, _$identity); @override Map toJson() { - return _$$_SignInRequestToJson( + return _$$SignInRequestImplToJson( this, ); } @@ -335,10 +336,10 @@ abstract class _SignInRequest implements SignInRequest { factory _SignInRequest( {@JsonKey(name: 'email') required final String email, @JsonKey(name: 'password') required final String password}) = - _$_SignInRequest; + _$SignInRequestImpl; factory _SignInRequest.fromJson(Map json) = - _$_SignInRequest.fromJson; + _$SignInRequestImpl.fromJson; @override @JsonKey(name: 'email') @@ -348,6 +349,6 @@ abstract class _SignInRequest implements SignInRequest { String get password; @override @JsonKey(ignore: true) - _$$_SignInRequestCopyWith<_$_SignInRequest> get copyWith => + _$$SignInRequestImplCopyWith<_$SignInRequestImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/core/model/service/auth_models.g.dart b/lib/core/model/service/auth_models.g.dart index c8775b0a..dcea6525 100644 --- a/lib/core/model/service/auth_models.g.dart +++ b/lib/core/model/service/auth_models.g.dart @@ -6,25 +6,26 @@ part of 'auth_models.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_SignInResponse _$$_SignInResponseFromJson(Map json) => - _$_SignInResponse( +_$SignInResponseImpl _$$SignInResponseImplFromJson(Map json) => + _$SignInResponseImpl( accessToken: json['access_token'] as String, user: User.fromJson(json['user'] as Map), ); -Map _$$_SignInResponseToJson(_$_SignInResponse instance) => +Map _$$SignInResponseImplToJson( + _$SignInResponseImpl instance) => { 'access_token': instance.accessToken, 'user': instance.user.toJson(), }; -_$_SignInRequest _$$_SignInRequestFromJson(Map json) => - _$_SignInRequest( +_$SignInRequestImpl _$$SignInRequestImplFromJson(Map json) => + _$SignInRequestImpl( email: json['email'] as String, password: json['password'] as String, ); -Map _$$_SignInRequestToJson(_$_SignInRequest instance) => +Map _$$SignInRequestImplToJson(_$SignInRequestImpl instance) => { 'email': instance.email, 'password': instance.password, diff --git a/lib/core/model/service/service_response.freezed.dart b/lib/core/model/service/service_response.freezed.dart index ff8750e0..0c97f12e 100644 --- a/lib/core/model/service/service_response.freezed.dart +++ b/lib/core/model/service/service_response.freezed.dart @@ -12,7 +12,7 @@ part of 'service_response.dart'; T _$identity(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#custom-getters-and-methods'); + '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'); /// @nodoc mixin _$ServiceResponse { @@ -75,20 +75,20 @@ class _$ServiceResponseCopyWithImpl> } /// @nodoc -abstract class _$$ServiceResponseDataCopyWith { - factory _$$ServiceResponseDataCopyWith(_$ServiceResponseData value, - $Res Function(_$ServiceResponseData) then) = - __$$ServiceResponseDataCopyWithImpl; +abstract class _$$ServiceResponseDataImplCopyWith { + factory _$$ServiceResponseDataImplCopyWith(_$ServiceResponseDataImpl value, + $Res Function(_$ServiceResponseDataImpl) then) = + __$$ServiceResponseDataImplCopyWithImpl; @useResult $Res call({T data}); } /// @nodoc -class __$$ServiceResponseDataCopyWithImpl - extends _$ServiceResponseCopyWithImpl> - implements _$$ServiceResponseDataCopyWith { - __$$ServiceResponseDataCopyWithImpl(_$ServiceResponseData _value, - $Res Function(_$ServiceResponseData) _then) +class __$$ServiceResponseDataImplCopyWithImpl + extends _$ServiceResponseCopyWithImpl> + implements _$$ServiceResponseDataImplCopyWith { + __$$ServiceResponseDataImplCopyWithImpl(_$ServiceResponseDataImpl _value, + $Res Function(_$ServiceResponseDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -96,7 +96,7 @@ class __$$ServiceResponseDataCopyWithImpl $Res call({ Object? data = freezed, }) { - return _then(_$ServiceResponseData( + return _then(_$ServiceResponseDataImpl( freezed == data ? _value.data : data // ignore: cast_nullable_to_non_nullable @@ -107,8 +107,8 @@ class __$$ServiceResponseDataCopyWithImpl /// @nodoc -class _$ServiceResponseData implements ServiceResponseData { - const _$ServiceResponseData(this.data); +class _$ServiceResponseDataImpl implements ServiceResponseData { + const _$ServiceResponseDataImpl(this.data); @override final T data; @@ -119,10 +119,10 @@ class _$ServiceResponseData implements ServiceResponseData { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ServiceResponseData && + other is _$ServiceResponseDataImpl && const DeepCollectionEquality().equals(other.data, data)); } @@ -133,9 +133,9 @@ class _$ServiceResponseData implements ServiceResponseData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ServiceResponseDataCopyWith> get copyWith => - __$$ServiceResponseDataCopyWithImpl>( - this, _$identity); + _$$ServiceResponseDataImplCopyWith> + get copyWith => __$$ServiceResponseDataImplCopyWithImpl>(this, _$identity); @override @optionalTypeArgs @@ -201,19 +201,21 @@ class _$ServiceResponseData implements ServiceResponseData { } abstract class ServiceResponseData implements ServiceResponse { - const factory ServiceResponseData(final T data) = _$ServiceResponseData; + const factory ServiceResponseData(final T data) = + _$ServiceResponseDataImpl; T get data; @JsonKey(ignore: true) - _$$ServiceResponseDataCopyWith> get copyWith => - throw _privateConstructorUsedError; + _$$ServiceResponseDataImplCopyWith> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$ServiceResponseErrorCopyWith { - factory _$$ServiceResponseErrorCopyWith(_$ServiceResponseError value, - $Res Function(_$ServiceResponseError) then) = - __$$ServiceResponseErrorCopyWithImpl; +abstract class _$$ServiceResponseErrorImplCopyWith { + factory _$$ServiceResponseErrorImplCopyWith( + _$ServiceResponseErrorImpl value, + $Res Function(_$ServiceResponseErrorImpl) then) = + __$$ServiceResponseErrorImplCopyWithImpl; @useResult $Res call({NetworkException error}); @@ -221,11 +223,12 @@ abstract class _$$ServiceResponseErrorCopyWith { } /// @nodoc -class __$$ServiceResponseErrorCopyWithImpl - extends _$ServiceResponseCopyWithImpl> - implements _$$ServiceResponseErrorCopyWith { - __$$ServiceResponseErrorCopyWithImpl(_$ServiceResponseError _value, - $Res Function(_$ServiceResponseError) _then) +class __$$ServiceResponseErrorImplCopyWithImpl + extends _$ServiceResponseCopyWithImpl> + implements _$$ServiceResponseErrorImplCopyWith { + __$$ServiceResponseErrorImplCopyWithImpl(_$ServiceResponseErrorImpl _value, + $Res Function(_$ServiceResponseErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -233,7 +236,7 @@ class __$$ServiceResponseErrorCopyWithImpl $Res call({ Object? error = null, }) { - return _then(_$ServiceResponseError( + return _then(_$ServiceResponseErrorImpl( null == error ? _value.error : error // ignore: cast_nullable_to_non_nullable @@ -252,8 +255,8 @@ class __$$ServiceResponseErrorCopyWithImpl /// @nodoc -class _$ServiceResponseError implements ServiceResponseError { - const _$ServiceResponseError(this.error); +class _$ServiceResponseErrorImpl implements ServiceResponseError { + const _$ServiceResponseErrorImpl(this.error); @override final NetworkException error; @@ -264,10 +267,10 @@ class _$ServiceResponseError implements ServiceResponseError { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ServiceResponseError && + other is _$ServiceResponseErrorImpl && (identical(other.error, error) || other.error == error)); } @@ -277,9 +280,9 @@ class _$ServiceResponseError implements ServiceResponseError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ServiceResponseErrorCopyWith> get copyWith => - __$$ServiceResponseErrorCopyWithImpl>( - this, _$identity); + _$$ServiceResponseErrorImplCopyWith> + get copyWith => __$$ServiceResponseErrorImplCopyWithImpl>(this, _$identity); @override @optionalTypeArgs @@ -346,10 +349,10 @@ class _$ServiceResponseError implements ServiceResponseError { abstract class ServiceResponseError implements ServiceResponse { const factory ServiceResponseError(final NetworkException error) = - _$ServiceResponseError; + _$ServiceResponseErrorImpl; NetworkException get error; @JsonKey(ignore: true) - _$$ServiceResponseErrorCopyWith> get copyWith => - throw _privateConstructorUsedError; + _$$ServiceResponseErrorImplCopyWith> + get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/core/model/user.freezed.dart b/lib/core/model/user.freezed.dart index 56d291e3..8089ae15 100644 --- a/lib/core/model/user.freezed.dart +++ b/lib/core/model/user.freezed.dart @@ -12,7 +12,7 @@ part of 'user.dart'; T _$identity(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#custom-getters-and-methods'); + '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'); User _$UserFromJson(Map json) { return _User.fromJson(json); @@ -66,18 +66,20 @@ class _$UserCopyWithImpl<$Res, $Val extends User> } /// @nodoc -abstract class _$$_UserCopyWith<$Res> implements $UserCopyWith<$Res> { - factory _$$_UserCopyWith(_$_User value, $Res Function(_$_User) then) = - __$$_UserCopyWithImpl<$Res>; +abstract class _$$UserImplCopyWith<$Res> implements $UserCopyWith<$Res> { + factory _$$UserImplCopyWith( + _$UserImpl value, $Res Function(_$UserImpl) then) = + __$$UserImplCopyWithImpl<$Res>; @override @useResult $Res call({String email, String? name}); } /// @nodoc -class __$$_UserCopyWithImpl<$Res> extends _$UserCopyWithImpl<$Res, _$_User> - implements _$$_UserCopyWith<$Res> { - __$$_UserCopyWithImpl(_$_User _value, $Res Function(_$_User) _then) +class __$$UserImplCopyWithImpl<$Res> + extends _$UserCopyWithImpl<$Res, _$UserImpl> + implements _$$UserImplCopyWith<$Res> { + __$$UserImplCopyWithImpl(_$UserImpl _value, $Res Function(_$UserImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -86,7 +88,7 @@ class __$$_UserCopyWithImpl<$Res> extends _$UserCopyWithImpl<$Res, _$_User> Object? email = null, Object? name = freezed, }) { - return _then(_$_User( + return _then(_$UserImpl( email: null == email ? _value.email : email // ignore: cast_nullable_to_non_nullable @@ -102,10 +104,11 @@ class __$$_UserCopyWithImpl<$Res> extends _$UserCopyWithImpl<$Res, _$_User> /// @nodoc @JsonSerializable() -class _$_User implements _User { - _$_User({required this.email, this.name}); +class _$UserImpl implements _User { + _$UserImpl({required this.email, this.name}); - factory _$_User.fromJson(Map json) => _$$_UserFromJson(json); + factory _$UserImpl.fromJson(Map json) => + _$$UserImplFromJson(json); @override final String email; @@ -118,10 +121,10 @@ class _$_User implements _User { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_User && + other is _$UserImpl && (identical(other.email, email) || other.email == email) && (identical(other.name, name) || other.name == name)); } @@ -133,21 +136,21 @@ class _$_User implements _User { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_UserCopyWith<_$_User> get copyWith => - __$$_UserCopyWithImpl<_$_User>(this, _$identity); + _$$UserImplCopyWith<_$UserImpl> get copyWith => + __$$UserImplCopyWithImpl<_$UserImpl>(this, _$identity); @override Map toJson() { - return _$$_UserToJson( + return _$$UserImplToJson( this, ); } } abstract class _User implements User { - factory _User({required final String email, final String? name}) = _$_User; + factory _User({required final String email, final String? name}) = _$UserImpl; - factory _User.fromJson(Map json) = _$_User.fromJson; + factory _User.fromJson(Map json) = _$UserImpl.fromJson; @override String get email; @@ -155,5 +158,6 @@ abstract class _User implements User { String? get name; @override @JsonKey(ignore: true) - _$$_UserCopyWith<_$_User> get copyWith => throw _privateConstructorUsedError; + _$$UserImplCopyWith<_$UserImpl> get copyWith => + throw _privateConstructorUsedError; } diff --git a/lib/core/model/user.g.dart b/lib/core/model/user.g.dart index 45882461..8e84a815 100644 --- a/lib/core/model/user.g.dart +++ b/lib/core/model/user.g.dart @@ -6,12 +6,13 @@ part of 'user.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_User _$$_UserFromJson(Map json) => _$_User( +_$UserImpl _$$UserImplFromJson(Map json) => _$UserImpl( email: json['email'] as String, name: json['name'] as String?, ); -Map _$$_UserToJson(_$_User instance) => { +Map _$$UserImplToJson(_$UserImpl instance) => + { 'email': instance.email, 'name': instance.name, }; diff --git a/lib/gen/assets.gen.dart b/lib/gen/assets.gen.dart index 8a4f2e0c..ababc527 100644 --- a/lib/gen/assets.gen.dart +++ b/lib/gen/assets.gen.dart @@ -7,82 +7,6 @@ // ignore_for_file: type=lint // ignore_for_file: directives_ordering,unnecessary_import,implicit_dynamic_list_literal,deprecated_member_use -import 'package:flutter/widgets.dart'; - class Assets { Assets._(); } - -class AssetGenImage { - const AssetGenImage(this._assetName); - - final String _assetName; - - Image image({ - Key? key, - AssetBundle? bundle, - ImageFrameBuilder? frameBuilder, - ImageErrorWidgetBuilder? errorBuilder, - String? semanticLabel, - bool excludeFromSemantics = false, - double? scale, - double? width, - double? height, - Color? color, - Animation? opacity, - BlendMode? colorBlendMode, - BoxFit? fit, - AlignmentGeometry alignment = Alignment.center, - ImageRepeat repeat = ImageRepeat.noRepeat, - Rect? centerSlice, - bool matchTextDirection = false, - bool gaplessPlayback = false, - bool isAntiAlias = false, - String? package, - FilterQuality filterQuality = FilterQuality.low, - int? cacheWidth, - int? cacheHeight, - }) { - return Image.asset( - _assetName, - key: key, - bundle: bundle, - frameBuilder: frameBuilder, - errorBuilder: errorBuilder, - semanticLabel: semanticLabel, - excludeFromSemantics: excludeFromSemantics, - scale: scale, - width: width, - height: height, - color: color, - opacity: opacity, - colorBlendMode: colorBlendMode, - fit: fit, - alignment: alignment, - repeat: repeat, - centerSlice: centerSlice, - matchTextDirection: matchTextDirection, - gaplessPlayback: gaplessPlayback, - isAntiAlias: isAntiAlias, - package: package, - filterQuality: filterQuality, - cacheWidth: cacheWidth, - cacheHeight: cacheHeight, - ); - } - - ImageProvider provider({ - AssetBundle? bundle, - String? package, - }) { - return AssetImage( - _assetName, - bundle: bundle, - package: package, - ); - } - - String get path => _assetName; - - String get keyName => _assetName; -} diff --git a/lib/ui/section/error_handler/general_error.freezed.dart b/lib/ui/section/error_handler/general_error.freezed.dart index 5403ee48..06af6248 100644 --- a/lib/ui/section/error_handler/general_error.freezed.dart +++ b/lib/ui/section/error_handler/general_error.freezed.dart @@ -12,7 +12,7 @@ part of 'general_error.dart'; T _$identity(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#custom-getters-and-methods'); + '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'); /// @nodoc mixin _$GeneralError { @@ -69,22 +69,22 @@ class _$GeneralErrorCopyWithImpl<$Res, $Val extends GeneralError> } /// @nodoc -abstract class _$$_GeneralErrorCopyWith<$Res> +abstract class _$$GeneralErrorImplCopyWith<$Res> implements $GeneralErrorCopyWith<$Res> { - factory _$$_GeneralErrorCopyWith( - _$_GeneralError value, $Res Function(_$_GeneralError) then) = - __$$_GeneralErrorCopyWithImpl<$Res>; + factory _$$GeneralErrorImplCopyWith( + _$GeneralErrorImpl value, $Res Function(_$GeneralErrorImpl) then) = + __$$GeneralErrorImplCopyWithImpl<$Res>; @override @useResult $Res call({String description, String? title, dynamic cause}); } /// @nodoc -class __$$_GeneralErrorCopyWithImpl<$Res> - extends _$GeneralErrorCopyWithImpl<$Res, _$_GeneralError> - implements _$$_GeneralErrorCopyWith<$Res> { - __$$_GeneralErrorCopyWithImpl( - _$_GeneralError _value, $Res Function(_$_GeneralError) _then) +class __$$GeneralErrorImplCopyWithImpl<$Res> + extends _$GeneralErrorCopyWithImpl<$Res, _$GeneralErrorImpl> + implements _$$GeneralErrorImplCopyWith<$Res> { + __$$GeneralErrorImplCopyWithImpl( + _$GeneralErrorImpl _value, $Res Function(_$GeneralErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -94,7 +94,7 @@ class __$$_GeneralErrorCopyWithImpl<$Res> Object? title = freezed, Object? cause = freezed, }) { - return _then(_$_GeneralError( + return _then(_$GeneralErrorImpl( description: null == description ? _value.description : description // ignore: cast_nullable_to_non_nullable @@ -113,8 +113,8 @@ class __$$_GeneralErrorCopyWithImpl<$Res> /// @nodoc -class _$_GeneralError with DiagnosticableTreeMixin implements _GeneralError { - const _$_GeneralError({required this.description, this.title, this.cause}); +class _$GeneralErrorImpl with DiagnosticableTreeMixin implements _GeneralError { + const _$GeneralErrorImpl({required this.description, this.title, this.cause}); @override final String description; @@ -139,10 +139,10 @@ class _$_GeneralError with DiagnosticableTreeMixin implements _GeneralError { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_GeneralError && + other is _$GeneralErrorImpl && (identical(other.description, description) || other.description == description) && (identical(other.title, title) || other.title == title) && @@ -156,15 +156,15 @@ class _$_GeneralError with DiagnosticableTreeMixin implements _GeneralError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_GeneralErrorCopyWith<_$_GeneralError> get copyWith => - __$$_GeneralErrorCopyWithImpl<_$_GeneralError>(this, _$identity); + _$$GeneralErrorImplCopyWith<_$GeneralErrorImpl> get copyWith => + __$$GeneralErrorImplCopyWithImpl<_$GeneralErrorImpl>(this, _$identity); } abstract class _GeneralError implements GeneralError { const factory _GeneralError( {required final String description, final String? title, - final dynamic cause}) = _$_GeneralError; + final dynamic cause}) = _$GeneralErrorImpl; @override String get description; @@ -174,6 +174,6 @@ abstract class _GeneralError implements GeneralError { dynamic get cause; @override @JsonKey(ignore: true) - _$$_GeneralErrorCopyWith<_$_GeneralError> get copyWith => + _$$GeneralErrorImplCopyWith<_$GeneralErrorImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/ui/section/error_handler/global_event_handler_cubit.freezed.dart b/lib/ui/section/error_handler/global_event_handler_cubit.freezed.dart index 4d0d3796..2f9342b1 100644 --- a/lib/ui/section/error_handler/global_event_handler_cubit.freezed.dart +++ b/lib/ui/section/error_handler/global_event_handler_cubit.freezed.dart @@ -12,7 +12,7 @@ part of 'global_event_handler_cubit.dart'; T _$identity(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#custom-getters-and-methods'); + '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'); /// @nodoc mixin _$GlobalEventHandlerState { @@ -82,30 +82,30 @@ class _$GlobalEventHandlerStateCopyWithImpl<$Res, } /// @nodoc -abstract class _$$IdleGlobalEventHandlerStateCopyWith<$Res> { - factory _$$IdleGlobalEventHandlerStateCopyWith( - _$IdleGlobalEventHandlerState value, - $Res Function(_$IdleGlobalEventHandlerState) then) = - __$$IdleGlobalEventHandlerStateCopyWithImpl<$Res>; +abstract class _$$IdleGlobalEventHandlerStateImplCopyWith<$Res> { + factory _$$IdleGlobalEventHandlerStateImplCopyWith( + _$IdleGlobalEventHandlerStateImpl value, + $Res Function(_$IdleGlobalEventHandlerStateImpl) then) = + __$$IdleGlobalEventHandlerStateImplCopyWithImpl<$Res>; } /// @nodoc -class __$$IdleGlobalEventHandlerStateCopyWithImpl<$Res> +class __$$IdleGlobalEventHandlerStateImplCopyWithImpl<$Res> extends _$GlobalEventHandlerStateCopyWithImpl<$Res, - _$IdleGlobalEventHandlerState> - implements _$$IdleGlobalEventHandlerStateCopyWith<$Res> { - __$$IdleGlobalEventHandlerStateCopyWithImpl( - _$IdleGlobalEventHandlerState _value, - $Res Function(_$IdleGlobalEventHandlerState) _then) + _$IdleGlobalEventHandlerStateImpl> + implements _$$IdleGlobalEventHandlerStateImplCopyWith<$Res> { + __$$IdleGlobalEventHandlerStateImplCopyWithImpl( + _$IdleGlobalEventHandlerStateImpl _value, + $Res Function(_$IdleGlobalEventHandlerStateImpl) _then) : super(_value, _then); } /// @nodoc -class _$IdleGlobalEventHandlerState +class _$IdleGlobalEventHandlerStateImpl with DiagnosticableTreeMixin implements IdleGlobalEventHandlerState { - const _$IdleGlobalEventHandlerState(); + const _$IdleGlobalEventHandlerStateImpl(); @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { @@ -119,10 +119,10 @@ class _$IdleGlobalEventHandlerState } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$IdleGlobalEventHandlerState); + other is _$IdleGlobalEventHandlerStateImpl); } @override @@ -198,15 +198,16 @@ class _$IdleGlobalEventHandlerState } abstract class IdleGlobalEventHandlerState implements GlobalEventHandlerState { - const factory IdleGlobalEventHandlerState() = _$IdleGlobalEventHandlerState; + const factory IdleGlobalEventHandlerState() = + _$IdleGlobalEventHandlerStateImpl; } /// @nodoc -abstract class _$$ErrorGlobalEventHandlerStateCopyWith<$Res> { - factory _$$ErrorGlobalEventHandlerStateCopyWith( - _$ErrorGlobalEventHandlerState value, - $Res Function(_$ErrorGlobalEventHandlerState) then) = - __$$ErrorGlobalEventHandlerStateCopyWithImpl<$Res>; +abstract class _$$ErrorGlobalEventHandlerStateImplCopyWith<$Res> { + factory _$$ErrorGlobalEventHandlerStateImplCopyWith( + _$ErrorGlobalEventHandlerStateImpl value, + $Res Function(_$ErrorGlobalEventHandlerStateImpl) then) = + __$$ErrorGlobalEventHandlerStateImplCopyWithImpl<$Res>; @useResult $Res call({GlobalEventHandlerStateError error}); @@ -214,13 +215,13 @@ abstract class _$$ErrorGlobalEventHandlerStateCopyWith<$Res> { } /// @nodoc -class __$$ErrorGlobalEventHandlerStateCopyWithImpl<$Res> +class __$$ErrorGlobalEventHandlerStateImplCopyWithImpl<$Res> extends _$GlobalEventHandlerStateCopyWithImpl<$Res, - _$ErrorGlobalEventHandlerState> - implements _$$ErrorGlobalEventHandlerStateCopyWith<$Res> { - __$$ErrorGlobalEventHandlerStateCopyWithImpl( - _$ErrorGlobalEventHandlerState _value, - $Res Function(_$ErrorGlobalEventHandlerState) _then) + _$ErrorGlobalEventHandlerStateImpl> + implements _$$ErrorGlobalEventHandlerStateImplCopyWith<$Res> { + __$$ErrorGlobalEventHandlerStateImplCopyWithImpl( + _$ErrorGlobalEventHandlerStateImpl _value, + $Res Function(_$ErrorGlobalEventHandlerStateImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -228,7 +229,7 @@ class __$$ErrorGlobalEventHandlerStateCopyWithImpl<$Res> $Res call({ Object? error = null, }) { - return _then(_$ErrorGlobalEventHandlerState( + return _then(_$ErrorGlobalEventHandlerStateImpl( null == error ? _value.error : error // ignore: cast_nullable_to_non_nullable @@ -247,10 +248,10 @@ class __$$ErrorGlobalEventHandlerStateCopyWithImpl<$Res> /// @nodoc -class _$ErrorGlobalEventHandlerState +class _$ErrorGlobalEventHandlerStateImpl with DiagnosticableTreeMixin implements ErrorGlobalEventHandlerState { - const _$ErrorGlobalEventHandlerState(this.error); + const _$ErrorGlobalEventHandlerStateImpl(this.error); @override final GlobalEventHandlerStateError error; @@ -269,10 +270,10 @@ class _$ErrorGlobalEventHandlerState } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ErrorGlobalEventHandlerState && + other is _$ErrorGlobalEventHandlerStateImpl && (identical(other.error, error) || other.error == error)); } @@ -282,9 +283,10 @@ class _$ErrorGlobalEventHandlerState @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ErrorGlobalEventHandlerStateCopyWith<_$ErrorGlobalEventHandlerState> - get copyWith => __$$ErrorGlobalEventHandlerStateCopyWithImpl< - _$ErrorGlobalEventHandlerState>(this, _$identity); + _$$ErrorGlobalEventHandlerStateImplCopyWith< + _$ErrorGlobalEventHandlerStateImpl> + get copyWith => __$$ErrorGlobalEventHandlerStateImplCopyWithImpl< + _$ErrorGlobalEventHandlerStateImpl>(this, _$identity); @override @optionalTypeArgs @@ -358,39 +360,40 @@ class _$ErrorGlobalEventHandlerState abstract class ErrorGlobalEventHandlerState implements GlobalEventHandlerState { const factory ErrorGlobalEventHandlerState( final GlobalEventHandlerStateError error) = - _$ErrorGlobalEventHandlerState; + _$ErrorGlobalEventHandlerStateImpl; GlobalEventHandlerStateError get error; @JsonKey(ignore: true) - _$$ErrorGlobalEventHandlerStateCopyWith<_$ErrorGlobalEventHandlerState> + _$$ErrorGlobalEventHandlerStateImplCopyWith< + _$ErrorGlobalEventHandlerStateImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$LoadingGlobalEventHandlerStateCopyWith<$Res> { - factory _$$LoadingGlobalEventHandlerStateCopyWith( - _$LoadingGlobalEventHandlerState value, - $Res Function(_$LoadingGlobalEventHandlerState) then) = - __$$LoadingGlobalEventHandlerStateCopyWithImpl<$Res>; +abstract class _$$LoadingGlobalEventHandlerStateImplCopyWith<$Res> { + factory _$$LoadingGlobalEventHandlerStateImplCopyWith( + _$LoadingGlobalEventHandlerStateImpl value, + $Res Function(_$LoadingGlobalEventHandlerStateImpl) then) = + __$$LoadingGlobalEventHandlerStateImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LoadingGlobalEventHandlerStateCopyWithImpl<$Res> +class __$$LoadingGlobalEventHandlerStateImplCopyWithImpl<$Res> extends _$GlobalEventHandlerStateCopyWithImpl<$Res, - _$LoadingGlobalEventHandlerState> - implements _$$LoadingGlobalEventHandlerStateCopyWith<$Res> { - __$$LoadingGlobalEventHandlerStateCopyWithImpl( - _$LoadingGlobalEventHandlerState _value, - $Res Function(_$LoadingGlobalEventHandlerState) _then) + _$LoadingGlobalEventHandlerStateImpl> + implements _$$LoadingGlobalEventHandlerStateImplCopyWith<$Res> { + __$$LoadingGlobalEventHandlerStateImplCopyWithImpl( + _$LoadingGlobalEventHandlerStateImpl _value, + $Res Function(_$LoadingGlobalEventHandlerStateImpl) _then) : super(_value, _then); } /// @nodoc -class _$LoadingGlobalEventHandlerState +class _$LoadingGlobalEventHandlerStateImpl with DiagnosticableTreeMixin implements LoadingGlobalEventHandlerState { - const _$LoadingGlobalEventHandlerState(); + const _$LoadingGlobalEventHandlerStateImpl(); @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { @@ -405,10 +408,10 @@ class _$LoadingGlobalEventHandlerState } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LoadingGlobalEventHandlerState); + other is _$LoadingGlobalEventHandlerStateImpl); } @override @@ -486,7 +489,7 @@ class _$LoadingGlobalEventHandlerState abstract class LoadingGlobalEventHandlerState implements GlobalEventHandlerState { const factory LoadingGlobalEventHandlerState() = - _$LoadingGlobalEventHandlerState; + _$LoadingGlobalEventHandlerStateImpl; } /// @nodoc @@ -583,22 +586,22 @@ class _$GlobalEventHandlerStateErrorCopyWithImpl<$Res, } /// @nodoc -abstract class _$$UnknownErrorCopyWith<$Res> +abstract class _$$UnknownErrorImplCopyWith<$Res> implements $GlobalEventHandlerStateErrorCopyWith<$Res> { - factory _$$UnknownErrorCopyWith( - _$UnknownError value, $Res Function(_$UnknownError) then) = - __$$UnknownErrorCopyWithImpl<$Res>; + factory _$$UnknownErrorImplCopyWith( + _$UnknownErrorImpl value, $Res Function(_$UnknownErrorImpl) then) = + __$$UnknownErrorImplCopyWithImpl<$Res>; @override @useResult $Res call({Object? error, VoidCallback? retry}); } /// @nodoc -class __$$UnknownErrorCopyWithImpl<$Res> - extends _$GlobalEventHandlerStateErrorCopyWithImpl<$Res, _$UnknownError> - implements _$$UnknownErrorCopyWith<$Res> { - __$$UnknownErrorCopyWithImpl( - _$UnknownError _value, $Res Function(_$UnknownError) _then) +class __$$UnknownErrorImplCopyWithImpl<$Res> + extends _$GlobalEventHandlerStateErrorCopyWithImpl<$Res, _$UnknownErrorImpl> + implements _$$UnknownErrorImplCopyWith<$Res> { + __$$UnknownErrorImplCopyWithImpl( + _$UnknownErrorImpl _value, $Res Function(_$UnknownErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -607,7 +610,7 @@ class __$$UnknownErrorCopyWithImpl<$Res> Object? error = freezed, Object? retry = freezed, }) { - return _then(_$UnknownError( + return _then(_$UnknownErrorImpl( freezed == error ? _value.error : error, freezed == retry ? _value.retry @@ -619,8 +622,8 @@ class __$$UnknownErrorCopyWithImpl<$Res> /// @nodoc -class _$UnknownError with DiagnosticableTreeMixin implements UnknownError { - const _$UnknownError(this.error, [this.retry]); +class _$UnknownErrorImpl with DiagnosticableTreeMixin implements UnknownError { + const _$UnknownErrorImpl(this.error, [this.retry]); @override final Object? error; @@ -645,8 +648,8 @@ class _$UnknownError with DiagnosticableTreeMixin implements UnknownError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$UnknownErrorCopyWith<_$UnknownError> get copyWith => - __$$UnknownErrorCopyWithImpl<_$UnknownError>(this, _$identity); + _$$UnknownErrorImplCopyWith<_$UnknownErrorImpl> get copyWith => + __$$UnknownErrorImplCopyWithImpl<_$UnknownErrorImpl>(this, _$identity); @override @optionalTypeArgs @@ -723,34 +726,34 @@ class _$UnknownError with DiagnosticableTreeMixin implements UnknownError { abstract class UnknownError implements GlobalEventHandlerStateError { const factory UnknownError(final Object? error, [final VoidCallback? retry]) = - _$UnknownError; + _$UnknownErrorImpl; Object? get error; @override VoidCallback? get retry; @override @JsonKey(ignore: true) - _$$UnknownErrorCopyWith<_$UnknownError> get copyWith => + _$$UnknownErrorImplCopyWith<_$UnknownErrorImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$InternetErrorCopyWith<$Res> +abstract class _$$InternetErrorImplCopyWith<$Res> implements $GlobalEventHandlerStateErrorCopyWith<$Res> { - factory _$$InternetErrorCopyWith( - _$InternetError value, $Res Function(_$InternetError) then) = - __$$InternetErrorCopyWithImpl<$Res>; + factory _$$InternetErrorImplCopyWith( + _$InternetErrorImpl value, $Res Function(_$InternetErrorImpl) then) = + __$$InternetErrorImplCopyWithImpl<$Res>; @override @useResult $Res call({VoidCallback? retry}); } /// @nodoc -class __$$InternetErrorCopyWithImpl<$Res> - extends _$GlobalEventHandlerStateErrorCopyWithImpl<$Res, _$InternetError> - implements _$$InternetErrorCopyWith<$Res> { - __$$InternetErrorCopyWithImpl( - _$InternetError _value, $Res Function(_$InternetError) _then) +class __$$InternetErrorImplCopyWithImpl<$Res> + extends _$GlobalEventHandlerStateErrorCopyWithImpl<$Res, + _$InternetErrorImpl> implements _$$InternetErrorImplCopyWith<$Res> { + __$$InternetErrorImplCopyWithImpl( + _$InternetErrorImpl _value, $Res Function(_$InternetErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -758,7 +761,7 @@ class __$$InternetErrorCopyWithImpl<$Res> $Res call({ Object? retry = freezed, }) { - return _then(_$InternetError( + return _then(_$InternetErrorImpl( freezed == retry ? _value.retry : retry // ignore: cast_nullable_to_non_nullable @@ -769,8 +772,10 @@ class __$$InternetErrorCopyWithImpl<$Res> /// @nodoc -class _$InternetError with DiagnosticableTreeMixin implements InternetError { - const _$InternetError([this.retry]); +class _$InternetErrorImpl + with DiagnosticableTreeMixin + implements InternetError { + const _$InternetErrorImpl([this.retry]); @override final VoidCallback? retry; @@ -792,8 +797,8 @@ class _$InternetError with DiagnosticableTreeMixin implements InternetError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$InternetErrorCopyWith<_$InternetError> get copyWith => - __$$InternetErrorCopyWithImpl<_$InternetError>(this, _$identity); + _$$InternetErrorImplCopyWith<_$InternetErrorImpl> get copyWith => + __$$InternetErrorImplCopyWithImpl<_$InternetErrorImpl>(this, _$identity); @override @optionalTypeArgs @@ -869,33 +874,34 @@ class _$InternetError with DiagnosticableTreeMixin implements InternetError { } abstract class InternetError implements GlobalEventHandlerStateError { - const factory InternetError([final VoidCallback? retry]) = _$InternetError; + const factory InternetError([final VoidCallback? retry]) = + _$InternetErrorImpl; @override VoidCallback? get retry; @override @JsonKey(ignore: true) - _$$InternetErrorCopyWith<_$InternetError> get copyWith => + _$$InternetErrorImplCopyWith<_$InternetErrorImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$GeneralErrorCopyWith<$Res> +abstract class _$$GeneralErrorImplCopyWith<$Res> implements $GlobalEventHandlerStateErrorCopyWith<$Res> { - factory _$$GeneralErrorCopyWith( - _$GeneralError value, $Res Function(_$GeneralError) then) = - __$$GeneralErrorCopyWithImpl<$Res>; + factory _$$GeneralErrorImplCopyWith( + _$GeneralErrorImpl value, $Res Function(_$GeneralErrorImpl) then) = + __$$GeneralErrorImplCopyWithImpl<$Res>; @override @useResult $Res call({String? title, String description, VoidCallback? retry}); } /// @nodoc -class __$$GeneralErrorCopyWithImpl<$Res> - extends _$GlobalEventHandlerStateErrorCopyWithImpl<$Res, _$GeneralError> - implements _$$GeneralErrorCopyWith<$Res> { - __$$GeneralErrorCopyWithImpl( - _$GeneralError _value, $Res Function(_$GeneralError) _then) +class __$$GeneralErrorImplCopyWithImpl<$Res> + extends _$GlobalEventHandlerStateErrorCopyWithImpl<$Res, _$GeneralErrorImpl> + implements _$$GeneralErrorImplCopyWith<$Res> { + __$$GeneralErrorImplCopyWithImpl( + _$GeneralErrorImpl _value, $Res Function(_$GeneralErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -905,7 +911,7 @@ class __$$GeneralErrorCopyWithImpl<$Res> Object? description = null, Object? retry = freezed, }) { - return _then(_$GeneralError( + return _then(_$GeneralErrorImpl( freezed == title ? _value.title : title // ignore: cast_nullable_to_non_nullable @@ -924,8 +930,8 @@ class __$$GeneralErrorCopyWithImpl<$Res> /// @nodoc -class _$GeneralError with DiagnosticableTreeMixin implements GeneralError { - const _$GeneralError(this.title, this.description, [this.retry]); +class _$GeneralErrorImpl with DiagnosticableTreeMixin implements GeneralError { + const _$GeneralErrorImpl(this.title, this.description, [this.retry]); @override final String? title; @@ -953,8 +959,8 @@ class _$GeneralError with DiagnosticableTreeMixin implements GeneralError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$GeneralErrorCopyWith<_$GeneralError> get copyWith => - __$$GeneralErrorCopyWithImpl<_$GeneralError>(this, _$identity); + _$$GeneralErrorImplCopyWith<_$GeneralErrorImpl> get copyWith => + __$$GeneralErrorImplCopyWithImpl<_$GeneralErrorImpl>(this, _$identity); @override @optionalTypeArgs @@ -1031,7 +1037,7 @@ class _$GeneralError with DiagnosticableTreeMixin implements GeneralError { abstract class GeneralError implements GlobalEventHandlerStateError { const factory GeneralError(final String? title, final String description, - [final VoidCallback? retry]) = _$GeneralError; + [final VoidCallback? retry]) = _$GeneralErrorImpl; String? get title; String get description; @@ -1039,6 +1045,6 @@ abstract class GeneralError implements GlobalEventHandlerStateError { VoidCallback? get retry; @override @JsonKey(ignore: true) - _$$GeneralErrorCopyWith<_$GeneralError> get copyWith => + _$$GeneralErrorImplCopyWith<_$GeneralErrorImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/ui/signin/signin_cubit.freezed.dart b/lib/ui/signin/signin_cubit.freezed.dart index c63ed615..5617aac8 100644 --- a/lib/ui/signin/signin_cubit.freezed.dart +++ b/lib/ui/signin/signin_cubit.freezed.dart @@ -12,7 +12,7 @@ part of 'signin_cubit.dart'; T _$identity(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#custom-getters-and-methods'); + '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'); /// @nodoc mixin _$SignInBaseState { @@ -102,22 +102,22 @@ class _$SignInBaseStateCopyWithImpl<$Res, $Val extends SignInBaseState> } /// @nodoc -abstract class _$$SignInStateCopyWith<$Res> +abstract class _$$SignInStateImplCopyWith<$Res> implements $SignInBaseStateCopyWith<$Res> { - factory _$$SignInStateCopyWith( - _$SignInState value, $Res Function(_$SignInState) then) = - __$$SignInStateCopyWithImpl<$Res>; + factory _$$SignInStateImplCopyWith( + _$SignInStateImpl value, $Res Function(_$SignInStateImpl) then) = + __$$SignInStateImplCopyWithImpl<$Res>; @override @useResult $Res call({String? email, String? password, String error}); } /// @nodoc -class __$$SignInStateCopyWithImpl<$Res> - extends _$SignInBaseStateCopyWithImpl<$Res, _$SignInState> - implements _$$SignInStateCopyWith<$Res> { - __$$SignInStateCopyWithImpl( - _$SignInState _value, $Res Function(_$SignInState) _then) +class __$$SignInStateImplCopyWithImpl<$Res> + extends _$SignInBaseStateCopyWithImpl<$Res, _$SignInStateImpl> + implements _$$SignInStateImplCopyWith<$Res> { + __$$SignInStateImplCopyWithImpl( + _$SignInStateImpl _value, $Res Function(_$SignInStateImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -127,7 +127,7 @@ class __$$SignInStateCopyWithImpl<$Res> Object? password = freezed, Object? error = null, }) { - return _then(_$SignInState( + return _then(_$SignInStateImpl( email: freezed == email ? _value.email : email // ignore: cast_nullable_to_non_nullable @@ -146,8 +146,8 @@ class __$$SignInStateCopyWithImpl<$Res> /// @nodoc -class _$SignInState implements SignInState { - const _$SignInState( +class _$SignInStateImpl implements SignInState { + const _$SignInStateImpl( {required this.email, required this.password, required this.error}); @override @@ -163,10 +163,10 @@ class _$SignInState implements SignInState { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$SignInState && + other is _$SignInStateImpl && (identical(other.email, email) || other.email == email) && (identical(other.password, password) || other.password == password) && @@ -179,8 +179,8 @@ class _$SignInState implements SignInState { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$SignInStateCopyWith<_$SignInState> get copyWith => - __$$SignInStateCopyWithImpl<_$SignInState>(this, _$identity); + _$$SignInStateImplCopyWith<_$SignInStateImpl> get copyWith => + __$$SignInStateImplCopyWithImpl<_$SignInStateImpl>(this, _$identity); @override @optionalTypeArgs @@ -244,7 +244,7 @@ abstract class SignInState implements SignInBaseState { const factory SignInState( {required final String? email, required final String? password, - required final String error}) = _$SignInState; + required final String error}) = _$SignInStateImpl; @override String? get email; @@ -254,6 +254,6 @@ abstract class SignInState implements SignInBaseState { String get error; @override @JsonKey(ignore: true) - _$$SignInStateCopyWith<_$SignInState> get copyWith => + _$$SignInStateImplCopyWith<_$SignInStateImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/ui/welcome/welcome_cubit.freezed.dart b/lib/ui/welcome/welcome_cubit.freezed.dart index f0fbf8c2..ba1f4a0c 100644 --- a/lib/ui/welcome/welcome_cubit.freezed.dart +++ b/lib/ui/welcome/welcome_cubit.freezed.dart @@ -12,7 +12,7 @@ part of 'welcome_cubit.dart'; T _$identity(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#custom-getters-and-methods'); + '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'); /// @nodoc mixin _$WelcomeBaseState { @@ -89,22 +89,22 @@ class _$WelcomeBaseStateCopyWithImpl<$Res, $Val extends WelcomeBaseState> } /// @nodoc -abstract class _$$WelcomeStateCopyWith<$Res> +abstract class _$$WelcomeStateImplCopyWith<$Res> implements $WelcomeBaseStateCopyWith<$Res> { - factory _$$WelcomeStateCopyWith( - _$WelcomeState value, $Res Function(_$WelcomeState) then) = - __$$WelcomeStateCopyWithImpl<$Res>; + factory _$$WelcomeStateImplCopyWith( + _$WelcomeStateImpl value, $Res Function(_$WelcomeStateImpl) then) = + __$$WelcomeStateImplCopyWithImpl<$Res>; @override @useResult $Res call({List projects}); } /// @nodoc -class __$$WelcomeStateCopyWithImpl<$Res> - extends _$WelcomeBaseStateCopyWithImpl<$Res, _$WelcomeState> - implements _$$WelcomeStateCopyWith<$Res> { - __$$WelcomeStateCopyWithImpl( - _$WelcomeState _value, $Res Function(_$WelcomeState) _then) +class __$$WelcomeStateImplCopyWithImpl<$Res> + extends _$WelcomeBaseStateCopyWithImpl<$Res, _$WelcomeStateImpl> + implements _$$WelcomeStateImplCopyWith<$Res> { + __$$WelcomeStateImplCopyWithImpl( + _$WelcomeStateImpl _value, $Res Function(_$WelcomeStateImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -112,7 +112,7 @@ class __$$WelcomeStateCopyWithImpl<$Res> $Res call({ Object? projects = null, }) { - return _then(_$WelcomeState( + return _then(_$WelcomeStateImpl( projects: null == projects ? _value._projects : projects // ignore: cast_nullable_to_non_nullable @@ -123,8 +123,8 @@ class __$$WelcomeStateCopyWithImpl<$Res> /// @nodoc -class _$WelcomeState implements WelcomeState { - const _$WelcomeState({final List projects = const []}) +class _$WelcomeStateImpl implements WelcomeState { + const _$WelcomeStateImpl({final List projects = const []}) : _projects = projects; final List _projects; @@ -142,10 +142,10 @@ class _$WelcomeState implements WelcomeState { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$WelcomeState && + other is _$WelcomeStateImpl && const DeepCollectionEquality().equals(other._projects, _projects)); } @@ -156,8 +156,8 @@ class _$WelcomeState implements WelcomeState { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$WelcomeStateCopyWith<_$WelcomeState> get copyWith => - __$$WelcomeStateCopyWithImpl<_$WelcomeState>(this, _$identity); + _$$WelcomeStateImplCopyWith<_$WelcomeStateImpl> get copyWith => + __$$WelcomeStateImplCopyWithImpl<_$WelcomeStateImpl>(this, _$identity); @override @optionalTypeArgs @@ -217,12 +217,13 @@ class _$WelcomeState implements WelcomeState { } abstract class WelcomeState implements WelcomeBaseState { - const factory WelcomeState({final List projects}) = _$WelcomeState; + const factory WelcomeState({final List projects}) = + _$WelcomeStateImpl; @override List get projects; @override @JsonKey(ignore: true) - _$$WelcomeStateCopyWith<_$WelcomeState> get copyWith => + _$$WelcomeStateImplCopyWith<_$WelcomeStateImpl> get copyWith => throw _privateConstructorUsedError; }