// coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // 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 part of 'async_store.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 informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); /// @nodoc class _$AsyncStateTearOff { const _$AsyncStateTearOff(); AsyncStateInitial initial() { return AsyncStateInitial(); } AsyncStateData data(T data) { return AsyncStateData( data, ); } AsyncStateLoading loading() { return AsyncStateLoading(); } AsyncStateError error(String errorTerm) { return AsyncStateError( errorTerm, ); } } /// @nodoc const $AsyncState = _$AsyncStateTearOff(); /// @nodoc mixin _$AsyncState { @optionalTypeArgs TResult when({ required TResult Function() initial, required TResult Function(T data) data, required TResult Function() loading, required TResult Function(String errorTerm) error, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? whenOrNull({ TResult Function()? initial, TResult Function(T data)? data, TResult Function()? loading, TResult Function(String errorTerm)? error, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ TResult Function()? initial, TResult Function(T data)? data, TResult Function()? loading, TResult Function(String errorTerm)? error, required TResult orElse(), }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ required TResult Function(AsyncStateInitial value) initial, required TResult Function(AsyncStateData value) data, required TResult Function(AsyncStateLoading value) loading, required TResult Function(AsyncStateError value) error, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? mapOrNull({ TResult Function(AsyncStateInitial value)? initial, TResult Function(AsyncStateData value)? data, TResult Function(AsyncStateLoading value)? loading, TResult Function(AsyncStateError value)? error, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeMap({ TResult Function(AsyncStateInitial value)? initial, TResult Function(AsyncStateData value)? data, TResult Function(AsyncStateLoading value)? loading, TResult Function(AsyncStateError value)? error, required TResult orElse(), }) => throw _privateConstructorUsedError; } /// @nodoc abstract class $AsyncStateCopyWith { factory $AsyncStateCopyWith( AsyncState value, $Res Function(AsyncState) then) = _$AsyncStateCopyWithImpl; } /// @nodoc class _$AsyncStateCopyWithImpl implements $AsyncStateCopyWith { _$AsyncStateCopyWithImpl(this._value, this._then); final AsyncState _value; // ignore: unused_field final $Res Function(AsyncState) _then; } /// @nodoc abstract class $AsyncStateInitialCopyWith { factory $AsyncStateInitialCopyWith(AsyncStateInitial value, $Res Function(AsyncStateInitial) then) = _$AsyncStateInitialCopyWithImpl; } /// @nodoc class _$AsyncStateInitialCopyWithImpl extends _$AsyncStateCopyWithImpl implements $AsyncStateInitialCopyWith { _$AsyncStateInitialCopyWithImpl( AsyncStateInitial _value, $Res Function(AsyncStateInitial) _then) : super(_value, (v) => _then(v as AsyncStateInitial)); @override AsyncStateInitial get _value => super._value as AsyncStateInitial; } /// @nodoc class _$AsyncStateInitial with DiagnosticableTreeMixin implements AsyncStateInitial { const _$AsyncStateInitial(); @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { return 'AsyncState<$T>.initial()'; } @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { super.debugFillProperties(properties); properties..add(DiagnosticsProperty('type', 'AsyncState<$T>.initial')); } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is AsyncStateInitial); } @override int get hashCode => runtimeType.hashCode; @override @optionalTypeArgs TResult when({ required TResult Function() initial, required TResult Function(T data) data, required TResult Function() loading, required TResult Function(String errorTerm) error, }) { return initial(); } @override @optionalTypeArgs TResult? whenOrNull({ TResult Function()? initial, TResult Function(T data)? data, TResult Function()? loading, TResult Function(String errorTerm)? error, }) { return initial?.call(); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? initial, TResult Function(T data)? data, TResult Function()? loading, TResult Function(String errorTerm)? error, required TResult orElse(), }) { if (initial != null) { return initial(); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(AsyncStateInitial value) initial, required TResult Function(AsyncStateData value) data, required TResult Function(AsyncStateLoading value) loading, required TResult Function(AsyncStateError value) error, }) { return initial(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult Function(AsyncStateInitial value)? initial, TResult Function(AsyncStateData value)? data, TResult Function(AsyncStateLoading value)? loading, TResult Function(AsyncStateError value)? error, }) { return initial?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(AsyncStateInitial value)? initial, TResult Function(AsyncStateData value)? data, TResult Function(AsyncStateLoading value)? loading, TResult Function(AsyncStateError value)? error, required TResult orElse(), }) { if (initial != null) { return initial(this); } return orElse(); } } abstract class AsyncStateInitial implements AsyncState { const factory AsyncStateInitial() = _$AsyncStateInitial; } /// @nodoc abstract class $AsyncStateDataCopyWith { factory $AsyncStateDataCopyWith( AsyncStateData value, $Res Function(AsyncStateData) then) = _$AsyncStateDataCopyWithImpl; $Res call({T data}); } /// @nodoc class _$AsyncStateDataCopyWithImpl extends _$AsyncStateCopyWithImpl implements $AsyncStateDataCopyWith { _$AsyncStateDataCopyWithImpl( AsyncStateData _value, $Res Function(AsyncStateData) _then) : super(_value, (v) => _then(v as AsyncStateData)); @override AsyncStateData get _value => super._value as AsyncStateData; @override $Res call({ Object? data = freezed, }) { return _then(AsyncStateData( data == freezed ? _value.data : data // ignore: cast_nullable_to_non_nullable as T, )); } } /// @nodoc class _$AsyncStateData with DiagnosticableTreeMixin implements AsyncStateData { const _$AsyncStateData(this.data); @override final T data; @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { return 'AsyncState<$T>.data(data: $data)'; } @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { super.debugFillProperties(properties); properties ..add(DiagnosticsProperty('type', 'AsyncState<$T>.data')) ..add(DiagnosticsProperty('data', data)); } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is AsyncStateData && const DeepCollectionEquality().equals(other.data, data)); } @override int get hashCode => Object.hash(runtimeType, const DeepCollectionEquality().hash(data)); @JsonKey(ignore: true) @override $AsyncStateDataCopyWith> get copyWith => _$AsyncStateDataCopyWithImpl>(this, _$identity); @override @optionalTypeArgs TResult when({ required TResult Function() initial, required TResult Function(T data) data, required TResult Function() loading, required TResult Function(String errorTerm) error, }) { return data(this.data); } @override @optionalTypeArgs TResult? whenOrNull({ TResult Function()? initial, TResult Function(T data)? data, TResult Function()? loading, TResult Function(String errorTerm)? error, }) { return data?.call(this.data); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? initial, TResult Function(T data)? data, TResult Function()? loading, TResult Function(String errorTerm)? error, required TResult orElse(), }) { if (data != null) { return data(this.data); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(AsyncStateInitial value) initial, required TResult Function(AsyncStateData value) data, required TResult Function(AsyncStateLoading value) loading, required TResult Function(AsyncStateError value) error, }) { return data(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult Function(AsyncStateInitial value)? initial, TResult Function(AsyncStateData value)? data, TResult Function(AsyncStateLoading value)? loading, TResult Function(AsyncStateError value)? error, }) { return data?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(AsyncStateInitial value)? initial, TResult Function(AsyncStateData value)? data, TResult Function(AsyncStateLoading value)? loading, TResult Function(AsyncStateError value)? error, required TResult orElse(), }) { if (data != null) { return data(this); } return orElse(); } } abstract class AsyncStateData implements AsyncState { const factory AsyncStateData(T data) = _$AsyncStateData; T get data; @JsonKey(ignore: true) $AsyncStateDataCopyWith> get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $AsyncStateLoadingCopyWith { factory $AsyncStateLoadingCopyWith(AsyncStateLoading value, $Res Function(AsyncStateLoading) then) = _$AsyncStateLoadingCopyWithImpl; } /// @nodoc class _$AsyncStateLoadingCopyWithImpl extends _$AsyncStateCopyWithImpl implements $AsyncStateLoadingCopyWith { _$AsyncStateLoadingCopyWithImpl( AsyncStateLoading _value, $Res Function(AsyncStateLoading) _then) : super(_value, (v) => _then(v as AsyncStateLoading)); @override AsyncStateLoading get _value => super._value as AsyncStateLoading; } /// @nodoc class _$AsyncStateLoading with DiagnosticableTreeMixin implements AsyncStateLoading { const _$AsyncStateLoading(); @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { return 'AsyncState<$T>.loading()'; } @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { super.debugFillProperties(properties); properties..add(DiagnosticsProperty('type', 'AsyncState<$T>.loading')); } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is AsyncStateLoading); } @override int get hashCode => runtimeType.hashCode; @override @optionalTypeArgs TResult when({ required TResult Function() initial, required TResult Function(T data) data, required TResult Function() loading, required TResult Function(String errorTerm) error, }) { return loading(); } @override @optionalTypeArgs TResult? whenOrNull({ TResult Function()? initial, TResult Function(T data)? data, TResult Function()? loading, TResult Function(String errorTerm)? error, }) { return loading?.call(); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? initial, TResult Function(T data)? data, TResult Function()? loading, TResult Function(String errorTerm)? error, required TResult orElse(), }) { if (loading != null) { return loading(); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(AsyncStateInitial value) initial, required TResult Function(AsyncStateData value) data, required TResult Function(AsyncStateLoading value) loading, required TResult Function(AsyncStateError value) error, }) { return loading(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult Function(AsyncStateInitial value)? initial, TResult Function(AsyncStateData value)? data, TResult Function(AsyncStateLoading value)? loading, TResult Function(AsyncStateError value)? error, }) { return loading?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(AsyncStateInitial value)? initial, TResult Function(AsyncStateData value)? data, TResult Function(AsyncStateLoading value)? loading, TResult Function(AsyncStateError value)? error, required TResult orElse(), }) { if (loading != null) { return loading(this); } return orElse(); } } abstract class AsyncStateLoading implements AsyncState { const factory AsyncStateLoading() = _$AsyncStateLoading; } /// @nodoc abstract class $AsyncStateErrorCopyWith { factory $AsyncStateErrorCopyWith( AsyncStateError value, $Res Function(AsyncStateError) then) = _$AsyncStateErrorCopyWithImpl; $Res call({String errorTerm}); } /// @nodoc class _$AsyncStateErrorCopyWithImpl extends _$AsyncStateCopyWithImpl implements $AsyncStateErrorCopyWith { _$AsyncStateErrorCopyWithImpl( AsyncStateError _value, $Res Function(AsyncStateError) _then) : super(_value, (v) => _then(v as AsyncStateError)); @override AsyncStateError get _value => super._value as AsyncStateError; @override $Res call({ Object? errorTerm = freezed, }) { return _then(AsyncStateError( errorTerm == freezed ? _value.errorTerm : errorTerm // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc class _$AsyncStateError with DiagnosticableTreeMixin implements AsyncStateError { const _$AsyncStateError(this.errorTerm); @override final String errorTerm; @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { return 'AsyncState<$T>.error(errorTerm: $errorTerm)'; } @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { super.debugFillProperties(properties); properties ..add(DiagnosticsProperty('type', 'AsyncState<$T>.error')) ..add(DiagnosticsProperty('errorTerm', errorTerm)); } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is AsyncStateError && (identical(other.errorTerm, errorTerm) || other.errorTerm == errorTerm)); } @override int get hashCode => Object.hash(runtimeType, errorTerm); @JsonKey(ignore: true) @override $AsyncStateErrorCopyWith> get copyWith => _$AsyncStateErrorCopyWithImpl>(this, _$identity); @override @optionalTypeArgs TResult when({ required TResult Function() initial, required TResult Function(T data) data, required TResult Function() loading, required TResult Function(String errorTerm) error, }) { return error(errorTerm); } @override @optionalTypeArgs TResult? whenOrNull({ TResult Function()? initial, TResult Function(T data)? data, TResult Function()? loading, TResult Function(String errorTerm)? error, }) { return error?.call(errorTerm); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? initial, TResult Function(T data)? data, TResult Function()? loading, TResult Function(String errorTerm)? error, required TResult orElse(), }) { if (error != null) { return error(errorTerm); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(AsyncStateInitial value) initial, required TResult Function(AsyncStateData value) data, required TResult Function(AsyncStateLoading value) loading, required TResult Function(AsyncStateError value) error, }) { return error(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult Function(AsyncStateInitial value)? initial, TResult Function(AsyncStateData value)? data, TResult Function(AsyncStateLoading value)? loading, TResult Function(AsyncStateError value)? error, }) { return error?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(AsyncStateInitial value)? initial, TResult Function(AsyncStateData value)? data, TResult Function(AsyncStateLoading value)? loading, TResult Function(AsyncStateError value)? error, required TResult orElse(), }) { if (error != null) { return error(this); } return orElse(); } } abstract class AsyncStateError implements AsyncState { const factory AsyncStateError(String errorTerm) = _$AsyncStateError; String get errorTerm; @JsonKey(ignore: true) $AsyncStateErrorCopyWith> get copyWith => throw _privateConstructorUsedError; }