// 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 'state.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 _$ExampleState { @optionalTypeArgs TResult when({ required TResult Function() loading, required TResult Function() data, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? whenOrNull({ TResult? Function()? loading, TResult? Function()? data, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ TResult Function()? loading, TResult Function()? data, required TResult orElse(), }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ required TResult Function(Loading value) loading, required TResult Function(Data value) data, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? mapOrNull({ TResult? Function(Loading value)? loading, TResult? Function(Data value)? data, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeMap({ TResult Function(Loading value)? loading, TResult Function(Data value)? data, required TResult orElse(), }) => throw _privateConstructorUsedError; } /// @nodoc abstract class $ExampleStateCopyWith<$Res> { factory $ExampleStateCopyWith( ExampleState value, $Res Function(ExampleState) then) = _$ExampleStateCopyWithImpl<$Res, ExampleState>; } /// @nodoc class _$ExampleStateCopyWithImpl<$Res, $Val extends ExampleState> implements $ExampleStateCopyWith<$Res> { _$ExampleStateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ExampleState /// with the given fields replaced by the non-null parameter values. } /// @nodoc abstract class _$$LoadingImplCopyWith<$Res> { factory _$$LoadingImplCopyWith( _$LoadingImpl value, $Res Function(_$LoadingImpl) then) = __$$LoadingImplCopyWithImpl<$Res>; } /// @nodoc class __$$LoadingImplCopyWithImpl<$Res> extends _$ExampleStateCopyWithImpl<$Res, _$LoadingImpl> implements _$$LoadingImplCopyWith<$Res> { __$$LoadingImplCopyWithImpl( _$LoadingImpl _value, $Res Function(_$LoadingImpl) _then) : super(_value, _then); /// Create a copy of ExampleState /// with the given fields replaced by the non-null parameter values. } /// @nodoc class _$LoadingImpl implements Loading { const _$LoadingImpl(); @override String toString() { return 'ExampleState.loading()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$LoadingImpl); } @override int get hashCode => runtimeType.hashCode; @override @optionalTypeArgs TResult when({ required TResult Function() loading, required TResult Function() data, }) { return loading(); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function()? loading, TResult? Function()? data, }) { return loading?.call(); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? loading, TResult Function()? data, required TResult orElse(), }) { if (loading != null) { return loading(); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(Loading value) loading, required TResult Function(Data value) data, }) { return loading(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(Loading value)? loading, TResult? Function(Data value)? data, }) { return loading?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(Loading value)? loading, TResult Function(Data value)? data, required TResult orElse(), }) { if (loading != null) { return loading(this); } return orElse(); } } abstract class Loading implements ExampleState { const factory Loading() = _$LoadingImpl; } /// @nodoc abstract class _$$DataImplCopyWith<$Res> { factory _$$DataImplCopyWith( _$DataImpl value, $Res Function(_$DataImpl) then) = __$$DataImplCopyWithImpl<$Res>; } /// @nodoc class __$$DataImplCopyWithImpl<$Res> extends _$ExampleStateCopyWithImpl<$Res, _$DataImpl> implements _$$DataImplCopyWith<$Res> { __$$DataImplCopyWithImpl(_$DataImpl _value, $Res Function(_$DataImpl) _then) : super(_value, _then); /// Create a copy of ExampleState /// with the given fields replaced by the non-null parameter values. } /// @nodoc class _$DataImpl implements Data { const _$DataImpl(); @override String toString() { return 'ExampleState.data()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DataImpl); } @override int get hashCode => runtimeType.hashCode; @override @optionalTypeArgs TResult when({ required TResult Function() loading, required TResult Function() data, }) { return data(); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function()? loading, TResult? Function()? data, }) { return data?.call(); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? loading, TResult Function()? data, required TResult orElse(), }) { if (data != null) { return data(); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(Loading value) loading, required TResult Function(Data value) data, }) { return data(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(Loading value)? loading, TResult? Function(Data value)? data, }) { return data?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(Loading value)? loading, TResult Function(Data value)? data, required TResult orElse(), }) { if (data != null) { return data(this); } return orElse(); } } abstract class Data implements ExampleState { const factory Data() = _$DataImpl; }