// 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 'home_bloc.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** 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#adding-getters-and-methods-to-our-models', ); /// @nodoc mixin _$HomeEvent { @optionalTypeArgs TResult when({ required TResult Function() fetchedDashboard, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? whenOrNull({ TResult? Function()? fetchedDashboard, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ TResult Function()? fetchedDashboard, required TResult orElse(), }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ required TResult Function(_FetchedDashboard value) fetchedDashboard, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_FetchedDashboard value)? fetchedDashboard, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeMap({ TResult Function(_FetchedDashboard value)? fetchedDashboard, required TResult orElse(), }) => throw _privateConstructorUsedError; } /// @nodoc abstract class $HomeEventCopyWith<$Res> { factory $HomeEventCopyWith(HomeEvent value, $Res Function(HomeEvent) then) = _$HomeEventCopyWithImpl<$Res, HomeEvent>; } /// @nodoc class _$HomeEventCopyWithImpl<$Res, $Val extends HomeEvent> implements $HomeEventCopyWith<$Res> { _$HomeEventCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of HomeEvent /// with the given fields replaced by the non-null parameter values. } /// @nodoc abstract class _$$FetchedDashboardImplCopyWith<$Res> { factory _$$FetchedDashboardImplCopyWith( _$FetchedDashboardImpl value, $Res Function(_$FetchedDashboardImpl) then, ) = __$$FetchedDashboardImplCopyWithImpl<$Res>; } /// @nodoc class __$$FetchedDashboardImplCopyWithImpl<$Res> extends _$HomeEventCopyWithImpl<$Res, _$FetchedDashboardImpl> implements _$$FetchedDashboardImplCopyWith<$Res> { __$$FetchedDashboardImplCopyWithImpl( _$FetchedDashboardImpl _value, $Res Function(_$FetchedDashboardImpl) _then, ) : super(_value, _then); /// Create a copy of HomeEvent /// with the given fields replaced by the non-null parameter values. } /// @nodoc class _$FetchedDashboardImpl implements _FetchedDashboard { const _$FetchedDashboardImpl(); @override String toString() { return 'HomeEvent.fetchedDashboard()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$FetchedDashboardImpl); } @override int get hashCode => runtimeType.hashCode; @override @optionalTypeArgs TResult when({ required TResult Function() fetchedDashboard, }) { return fetchedDashboard(); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function()? fetchedDashboard, }) { return fetchedDashboard?.call(); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? fetchedDashboard, required TResult orElse(), }) { if (fetchedDashboard != null) { return fetchedDashboard(); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_FetchedDashboard value) fetchedDashboard, }) { return fetchedDashboard(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_FetchedDashboard value)? fetchedDashboard, }) { return fetchedDashboard?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_FetchedDashboard value)? fetchedDashboard, required TResult orElse(), }) { if (fetchedDashboard != null) { return fetchedDashboard(this); } return orElse(); } } abstract class _FetchedDashboard implements HomeEvent { const factory _FetchedDashboard() = _$FetchedDashboardImpl; } /// @nodoc mixin _$HomeState { DashboardAnalytic get dashboard => throw _privateConstructorUsedError; Option get failureOptionDashboard => throw _privateConstructorUsedError; bool get isFetching => throw _privateConstructorUsedError; /// Create a copy of HomeState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $HomeStateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $HomeStateCopyWith<$Res> { factory $HomeStateCopyWith(HomeState value, $Res Function(HomeState) then) = _$HomeStateCopyWithImpl<$Res, HomeState>; @useResult $Res call({ DashboardAnalytic dashboard, Option failureOptionDashboard, bool isFetching, }); $DashboardAnalyticCopyWith<$Res> get dashboard; } /// @nodoc class _$HomeStateCopyWithImpl<$Res, $Val extends HomeState> implements $HomeStateCopyWith<$Res> { _$HomeStateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of HomeState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? dashboard = null, Object? failureOptionDashboard = null, Object? isFetching = null, }) { return _then( _value.copyWith( dashboard: null == dashboard ? _value.dashboard : dashboard // ignore: cast_nullable_to_non_nullable as DashboardAnalytic, failureOptionDashboard: null == failureOptionDashboard ? _value.failureOptionDashboard : failureOptionDashboard // ignore: cast_nullable_to_non_nullable as Option, isFetching: null == isFetching ? _value.isFetching : isFetching // ignore: cast_nullable_to_non_nullable as bool, ) as $Val, ); } /// Create a copy of HomeState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $DashboardAnalyticCopyWith<$Res> get dashboard { return $DashboardAnalyticCopyWith<$Res>(_value.dashboard, (value) { return _then(_value.copyWith(dashboard: value) as $Val); }); } } /// @nodoc abstract class _$$HomeStateImplCopyWith<$Res> implements $HomeStateCopyWith<$Res> { factory _$$HomeStateImplCopyWith( _$HomeStateImpl value, $Res Function(_$HomeStateImpl) then, ) = __$$HomeStateImplCopyWithImpl<$Res>; @override @useResult $Res call({ DashboardAnalytic dashboard, Option failureOptionDashboard, bool isFetching, }); @override $DashboardAnalyticCopyWith<$Res> get dashboard; } /// @nodoc class __$$HomeStateImplCopyWithImpl<$Res> extends _$HomeStateCopyWithImpl<$Res, _$HomeStateImpl> implements _$$HomeStateImplCopyWith<$Res> { __$$HomeStateImplCopyWithImpl( _$HomeStateImpl _value, $Res Function(_$HomeStateImpl) _then, ) : super(_value, _then); /// Create a copy of HomeState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? dashboard = null, Object? failureOptionDashboard = null, Object? isFetching = null, }) { return _then( _$HomeStateImpl( dashboard: null == dashboard ? _value.dashboard : dashboard // ignore: cast_nullable_to_non_nullable as DashboardAnalytic, failureOptionDashboard: null == failureOptionDashboard ? _value.failureOptionDashboard : failureOptionDashboard // ignore: cast_nullable_to_non_nullable as Option, isFetching: null == isFetching ? _value.isFetching : isFetching // ignore: cast_nullable_to_non_nullable as bool, ), ); } } /// @nodoc class _$HomeStateImpl implements _HomeState { const _$HomeStateImpl({ required this.dashboard, required this.failureOptionDashboard, this.isFetching = false, }); @override final DashboardAnalytic dashboard; @override final Option failureOptionDashboard; @override @JsonKey() final bool isFetching; @override String toString() { return 'HomeState(dashboard: $dashboard, failureOptionDashboard: $failureOptionDashboard, isFetching: $isFetching)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$HomeStateImpl && (identical(other.dashboard, dashboard) || other.dashboard == dashboard) && (identical(other.failureOptionDashboard, failureOptionDashboard) || other.failureOptionDashboard == failureOptionDashboard) && (identical(other.isFetching, isFetching) || other.isFetching == isFetching)); } @override int get hashCode => Object.hash(runtimeType, dashboard, failureOptionDashboard, isFetching); /// Create a copy of HomeState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$HomeStateImplCopyWith<_$HomeStateImpl> get copyWith => __$$HomeStateImplCopyWithImpl<_$HomeStateImpl>(this, _$identity); } abstract class _HomeState implements HomeState { const factory _HomeState({ required final DashboardAnalytic dashboard, required final Option failureOptionDashboard, final bool isFetching, }) = _$HomeStateImpl; @override DashboardAnalytic get dashboard; @override Option get failureOptionDashboard; @override bool get isFetching; /// Create a copy of HomeState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$HomeStateImplCopyWith<_$HomeStateImpl> get copyWith => throw _privateConstructorUsedError; }