// 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 'saved_view_cubit.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#custom-getters-and-methods'); /// @nodoc mixin _$SavedViewState { Map get correspondents => throw _privateConstructorUsedError; Map get documentTypes => throw _privateConstructorUsedError; Map get tags => throw _privateConstructorUsedError; Map get storagePaths => throw _privateConstructorUsedError; @optionalTypeArgs TResult when({ required TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths) initial, required TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths) loading, required TResult Function( Map savedViews, Map correspondents, Map documentTypes, Map tags, Map storagePaths) loaded, required TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths) error, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? whenOrNull({ TResult? Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? initial, TResult? Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loading, TResult? Function( Map savedViews, Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loaded, TResult? Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? error, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? initial, TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loading, TResult Function( Map savedViews, Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loaded, TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? error, required TResult orElse(), }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ required TResult Function(_SavedViewIntialState value) initial, required TResult Function(_SavedViewLoadingState value) loading, required TResult Function(_SavedViewLoadedState value) loaded, required TResult Function(_SavedViewErrorState value) error, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_SavedViewIntialState value)? initial, TResult? Function(_SavedViewLoadingState value)? loading, TResult? Function(_SavedViewLoadedState value)? loaded, TResult? Function(_SavedViewErrorState value)? error, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeMap({ TResult Function(_SavedViewIntialState value)? initial, TResult Function(_SavedViewLoadingState value)? loading, TResult Function(_SavedViewLoadedState value)? loaded, TResult Function(_SavedViewErrorState value)? error, required TResult orElse(), }) => throw _privateConstructorUsedError; @JsonKey(ignore: true) $SavedViewStateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $SavedViewStateCopyWith<$Res> { factory $SavedViewStateCopyWith( SavedViewState value, $Res Function(SavedViewState) then) = _$SavedViewStateCopyWithImpl<$Res, SavedViewState>; @useResult $Res call( {Map correspondents, Map documentTypes, Map tags, Map storagePaths}); } /// @nodoc class _$SavedViewStateCopyWithImpl<$Res, $Val extends SavedViewState> implements $SavedViewStateCopyWith<$Res> { _$SavedViewStateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; @pragma('vm:prefer-inline') @override $Res call({ Object? correspondents = null, Object? documentTypes = null, Object? tags = null, Object? storagePaths = null, }) { return _then(_value.copyWith( correspondents: null == correspondents ? _value.correspondents : correspondents // ignore: cast_nullable_to_non_nullable as Map, documentTypes: null == documentTypes ? _value.documentTypes : documentTypes // ignore: cast_nullable_to_non_nullable as Map, tags: null == tags ? _value.tags : tags // ignore: cast_nullable_to_non_nullable as Map, storagePaths: null == storagePaths ? _value.storagePaths : storagePaths // ignore: cast_nullable_to_non_nullable as Map, ) as $Val); } } /// @nodoc abstract class _$$_SavedViewIntialStateCopyWith<$Res> implements $SavedViewStateCopyWith<$Res> { factory _$$_SavedViewIntialStateCopyWith(_$_SavedViewIntialState value, $Res Function(_$_SavedViewIntialState) then) = __$$_SavedViewIntialStateCopyWithImpl<$Res>; @override @useResult $Res call( {Map correspondents, Map documentTypes, Map tags, Map storagePaths}); } /// @nodoc class __$$_SavedViewIntialStateCopyWithImpl<$Res> extends _$SavedViewStateCopyWithImpl<$Res, _$_SavedViewIntialState> implements _$$_SavedViewIntialStateCopyWith<$Res> { __$$_SavedViewIntialStateCopyWithImpl(_$_SavedViewIntialState _value, $Res Function(_$_SavedViewIntialState) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? correspondents = null, Object? documentTypes = null, Object? tags = null, Object? storagePaths = null, }) { return _then(_$_SavedViewIntialState( correspondents: null == correspondents ? _value._correspondents : correspondents // ignore: cast_nullable_to_non_nullable as Map, documentTypes: null == documentTypes ? _value._documentTypes : documentTypes // ignore: cast_nullable_to_non_nullable as Map, tags: null == tags ? _value._tags : tags // ignore: cast_nullable_to_non_nullable as Map, storagePaths: null == storagePaths ? _value._storagePaths : storagePaths // ignore: cast_nullable_to_non_nullable as Map, )); } } /// @nodoc class _$_SavedViewIntialState implements _SavedViewIntialState { const _$_SavedViewIntialState( {required final Map correspondents, required final Map documentTypes, required final Map tags, required final Map storagePaths}) : _correspondents = correspondents, _documentTypes = documentTypes, _tags = tags, _storagePaths = storagePaths; final Map _correspondents; @override Map get correspondents { if (_correspondents is EqualUnmodifiableMapView) return _correspondents; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_correspondents); } final Map _documentTypes; @override Map get documentTypes { if (_documentTypes is EqualUnmodifiableMapView) return _documentTypes; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_documentTypes); } final Map _tags; @override Map get tags { if (_tags is EqualUnmodifiableMapView) return _tags; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_tags); } final Map _storagePaths; @override Map get storagePaths { if (_storagePaths is EqualUnmodifiableMapView) return _storagePaths; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_storagePaths); } @override String toString() { return 'SavedViewState.initial(correspondents: $correspondents, documentTypes: $documentTypes, tags: $tags, storagePaths: $storagePaths)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$_SavedViewIntialState && const DeepCollectionEquality() .equals(other._correspondents, _correspondents) && const DeepCollectionEquality() .equals(other._documentTypes, _documentTypes) && const DeepCollectionEquality().equals(other._tags, _tags) && const DeepCollectionEquality() .equals(other._storagePaths, _storagePaths)); } @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_correspondents), const DeepCollectionEquality().hash(_documentTypes), const DeepCollectionEquality().hash(_tags), const DeepCollectionEquality().hash(_storagePaths)); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$_SavedViewIntialStateCopyWith<_$_SavedViewIntialState> get copyWith => __$$_SavedViewIntialStateCopyWithImpl<_$_SavedViewIntialState>( this, _$identity); @override @optionalTypeArgs TResult when({ required TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths) initial, required TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths) loading, required TResult Function( Map savedViews, Map correspondents, Map documentTypes, Map tags, Map storagePaths) loaded, required TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths) error, }) { return initial(correspondents, documentTypes, tags, storagePaths); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? initial, TResult? Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loading, TResult? Function( Map savedViews, Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loaded, TResult? Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? error, }) { return initial?.call(correspondents, documentTypes, tags, storagePaths); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? initial, TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loading, TResult Function( Map savedViews, Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loaded, TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? error, required TResult orElse(), }) { if (initial != null) { return initial(correspondents, documentTypes, tags, storagePaths); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_SavedViewIntialState value) initial, required TResult Function(_SavedViewLoadingState value) loading, required TResult Function(_SavedViewLoadedState value) loaded, required TResult Function(_SavedViewErrorState value) error, }) { return initial(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_SavedViewIntialState value)? initial, TResult? Function(_SavedViewLoadingState value)? loading, TResult? Function(_SavedViewLoadedState value)? loaded, TResult? Function(_SavedViewErrorState value)? error, }) { return initial?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_SavedViewIntialState value)? initial, TResult Function(_SavedViewLoadingState value)? loading, TResult Function(_SavedViewLoadedState value)? loaded, TResult Function(_SavedViewErrorState value)? error, required TResult orElse(), }) { if (initial != null) { return initial(this); } return orElse(); } } abstract class _SavedViewIntialState implements SavedViewState { const factory _SavedViewIntialState( {required final Map correspondents, required final Map documentTypes, required final Map tags, required final Map storagePaths}) = _$_SavedViewIntialState; @override Map get correspondents; @override Map get documentTypes; @override Map get tags; @override Map get storagePaths; @override @JsonKey(ignore: true) _$$_SavedViewIntialStateCopyWith<_$_SavedViewIntialState> get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class _$$_SavedViewLoadingStateCopyWith<$Res> implements $SavedViewStateCopyWith<$Res> { factory _$$_SavedViewLoadingStateCopyWith(_$_SavedViewLoadingState value, $Res Function(_$_SavedViewLoadingState) then) = __$$_SavedViewLoadingStateCopyWithImpl<$Res>; @override @useResult $Res call( {Map correspondents, Map documentTypes, Map tags, Map storagePaths}); } /// @nodoc class __$$_SavedViewLoadingStateCopyWithImpl<$Res> extends _$SavedViewStateCopyWithImpl<$Res, _$_SavedViewLoadingState> implements _$$_SavedViewLoadingStateCopyWith<$Res> { __$$_SavedViewLoadingStateCopyWithImpl(_$_SavedViewLoadingState _value, $Res Function(_$_SavedViewLoadingState) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? correspondents = null, Object? documentTypes = null, Object? tags = null, Object? storagePaths = null, }) { return _then(_$_SavedViewLoadingState( correspondents: null == correspondents ? _value._correspondents : correspondents // ignore: cast_nullable_to_non_nullable as Map, documentTypes: null == documentTypes ? _value._documentTypes : documentTypes // ignore: cast_nullable_to_non_nullable as Map, tags: null == tags ? _value._tags : tags // ignore: cast_nullable_to_non_nullable as Map, storagePaths: null == storagePaths ? _value._storagePaths : storagePaths // ignore: cast_nullable_to_non_nullable as Map, )); } } /// @nodoc class _$_SavedViewLoadingState implements _SavedViewLoadingState { const _$_SavedViewLoadingState( {required final Map correspondents, required final Map documentTypes, required final Map tags, required final Map storagePaths}) : _correspondents = correspondents, _documentTypes = documentTypes, _tags = tags, _storagePaths = storagePaths; final Map _correspondents; @override Map get correspondents { if (_correspondents is EqualUnmodifiableMapView) return _correspondents; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_correspondents); } final Map _documentTypes; @override Map get documentTypes { if (_documentTypes is EqualUnmodifiableMapView) return _documentTypes; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_documentTypes); } final Map _tags; @override Map get tags { if (_tags is EqualUnmodifiableMapView) return _tags; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_tags); } final Map _storagePaths; @override Map get storagePaths { if (_storagePaths is EqualUnmodifiableMapView) return _storagePaths; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_storagePaths); } @override String toString() { return 'SavedViewState.loading(correspondents: $correspondents, documentTypes: $documentTypes, tags: $tags, storagePaths: $storagePaths)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$_SavedViewLoadingState && const DeepCollectionEquality() .equals(other._correspondents, _correspondents) && const DeepCollectionEquality() .equals(other._documentTypes, _documentTypes) && const DeepCollectionEquality().equals(other._tags, _tags) && const DeepCollectionEquality() .equals(other._storagePaths, _storagePaths)); } @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_correspondents), const DeepCollectionEquality().hash(_documentTypes), const DeepCollectionEquality().hash(_tags), const DeepCollectionEquality().hash(_storagePaths)); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$_SavedViewLoadingStateCopyWith<_$_SavedViewLoadingState> get copyWith => __$$_SavedViewLoadingStateCopyWithImpl<_$_SavedViewLoadingState>( this, _$identity); @override @optionalTypeArgs TResult when({ required TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths) initial, required TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths) loading, required TResult Function( Map savedViews, Map correspondents, Map documentTypes, Map tags, Map storagePaths) loaded, required TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths) error, }) { return loading(correspondents, documentTypes, tags, storagePaths); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? initial, TResult? Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loading, TResult? Function( Map savedViews, Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loaded, TResult? Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? error, }) { return loading?.call(correspondents, documentTypes, tags, storagePaths); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? initial, TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loading, TResult Function( Map savedViews, Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loaded, TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? error, required TResult orElse(), }) { if (loading != null) { return loading(correspondents, documentTypes, tags, storagePaths); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_SavedViewIntialState value) initial, required TResult Function(_SavedViewLoadingState value) loading, required TResult Function(_SavedViewLoadedState value) loaded, required TResult Function(_SavedViewErrorState value) error, }) { return loading(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_SavedViewIntialState value)? initial, TResult? Function(_SavedViewLoadingState value)? loading, TResult? Function(_SavedViewLoadedState value)? loaded, TResult? Function(_SavedViewErrorState value)? error, }) { return loading?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_SavedViewIntialState value)? initial, TResult Function(_SavedViewLoadingState value)? loading, TResult Function(_SavedViewLoadedState value)? loaded, TResult Function(_SavedViewErrorState value)? error, required TResult orElse(), }) { if (loading != null) { return loading(this); } return orElse(); } } abstract class _SavedViewLoadingState implements SavedViewState { const factory _SavedViewLoadingState( {required final Map correspondents, required final Map documentTypes, required final Map tags, required final Map storagePaths}) = _$_SavedViewLoadingState; @override Map get correspondents; @override Map get documentTypes; @override Map get tags; @override Map get storagePaths; @override @JsonKey(ignore: true) _$$_SavedViewLoadingStateCopyWith<_$_SavedViewLoadingState> get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class _$$_SavedViewLoadedStateCopyWith<$Res> implements $SavedViewStateCopyWith<$Res> { factory _$$_SavedViewLoadedStateCopyWith(_$_SavedViewLoadedState value, $Res Function(_$_SavedViewLoadedState) then) = __$$_SavedViewLoadedStateCopyWithImpl<$Res>; @override @useResult $Res call( {Map savedViews, Map correspondents, Map documentTypes, Map tags, Map storagePaths}); } /// @nodoc class __$$_SavedViewLoadedStateCopyWithImpl<$Res> extends _$SavedViewStateCopyWithImpl<$Res, _$_SavedViewLoadedState> implements _$$_SavedViewLoadedStateCopyWith<$Res> { __$$_SavedViewLoadedStateCopyWithImpl(_$_SavedViewLoadedState _value, $Res Function(_$_SavedViewLoadedState) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? savedViews = null, Object? correspondents = null, Object? documentTypes = null, Object? tags = null, Object? storagePaths = null, }) { return _then(_$_SavedViewLoadedState( savedViews: null == savedViews ? _value._savedViews : savedViews // ignore: cast_nullable_to_non_nullable as Map, correspondents: null == correspondents ? _value._correspondents : correspondents // ignore: cast_nullable_to_non_nullable as Map, documentTypes: null == documentTypes ? _value._documentTypes : documentTypes // ignore: cast_nullable_to_non_nullable as Map, tags: null == tags ? _value._tags : tags // ignore: cast_nullable_to_non_nullable as Map, storagePaths: null == storagePaths ? _value._storagePaths : storagePaths // ignore: cast_nullable_to_non_nullable as Map, )); } } /// @nodoc class _$_SavedViewLoadedState implements _SavedViewLoadedState { const _$_SavedViewLoadedState( {required final Map savedViews, required final Map correspondents, required final Map documentTypes, required final Map tags, required final Map storagePaths}) : _savedViews = savedViews, _correspondents = correspondents, _documentTypes = documentTypes, _tags = tags, _storagePaths = storagePaths; final Map _savedViews; @override Map get savedViews { if (_savedViews is EqualUnmodifiableMapView) return _savedViews; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_savedViews); } final Map _correspondents; @override Map get correspondents { if (_correspondents is EqualUnmodifiableMapView) return _correspondents; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_correspondents); } final Map _documentTypes; @override Map get documentTypes { if (_documentTypes is EqualUnmodifiableMapView) return _documentTypes; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_documentTypes); } final Map _tags; @override Map get tags { if (_tags is EqualUnmodifiableMapView) return _tags; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_tags); } final Map _storagePaths; @override Map get storagePaths { if (_storagePaths is EqualUnmodifiableMapView) return _storagePaths; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_storagePaths); } @override String toString() { return 'SavedViewState.loaded(savedViews: $savedViews, correspondents: $correspondents, documentTypes: $documentTypes, tags: $tags, storagePaths: $storagePaths)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$_SavedViewLoadedState && const DeepCollectionEquality() .equals(other._savedViews, _savedViews) && const DeepCollectionEquality() .equals(other._correspondents, _correspondents) && const DeepCollectionEquality() .equals(other._documentTypes, _documentTypes) && const DeepCollectionEquality().equals(other._tags, _tags) && const DeepCollectionEquality() .equals(other._storagePaths, _storagePaths)); } @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_savedViews), const DeepCollectionEquality().hash(_correspondents), const DeepCollectionEquality().hash(_documentTypes), const DeepCollectionEquality().hash(_tags), const DeepCollectionEquality().hash(_storagePaths)); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$_SavedViewLoadedStateCopyWith<_$_SavedViewLoadedState> get copyWith => __$$_SavedViewLoadedStateCopyWithImpl<_$_SavedViewLoadedState>( this, _$identity); @override @optionalTypeArgs TResult when({ required TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths) initial, required TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths) loading, required TResult Function( Map savedViews, Map correspondents, Map documentTypes, Map tags, Map storagePaths) loaded, required TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths) error, }) { return loaded( savedViews, correspondents, documentTypes, tags, storagePaths); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? initial, TResult? Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loading, TResult? Function( Map savedViews, Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loaded, TResult? Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? error, }) { return loaded?.call( savedViews, correspondents, documentTypes, tags, storagePaths); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? initial, TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loading, TResult Function( Map savedViews, Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loaded, TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? error, required TResult orElse(), }) { if (loaded != null) { return loaded( savedViews, correspondents, documentTypes, tags, storagePaths); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_SavedViewIntialState value) initial, required TResult Function(_SavedViewLoadingState value) loading, required TResult Function(_SavedViewLoadedState value) loaded, required TResult Function(_SavedViewErrorState value) error, }) { return loaded(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_SavedViewIntialState value)? initial, TResult? Function(_SavedViewLoadingState value)? loading, TResult? Function(_SavedViewLoadedState value)? loaded, TResult? Function(_SavedViewErrorState value)? error, }) { return loaded?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_SavedViewIntialState value)? initial, TResult Function(_SavedViewLoadingState value)? loading, TResult Function(_SavedViewLoadedState value)? loaded, TResult Function(_SavedViewErrorState value)? error, required TResult orElse(), }) { if (loaded != null) { return loaded(this); } return orElse(); } } abstract class _SavedViewLoadedState implements SavedViewState { const factory _SavedViewLoadedState( {required final Map savedViews, required final Map correspondents, required final Map documentTypes, required final Map tags, required final Map storagePaths}) = _$_SavedViewLoadedState; Map get savedViews; @override Map get correspondents; @override Map get documentTypes; @override Map get tags; @override Map get storagePaths; @override @JsonKey(ignore: true) _$$_SavedViewLoadedStateCopyWith<_$_SavedViewLoadedState> get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class _$$_SavedViewErrorStateCopyWith<$Res> implements $SavedViewStateCopyWith<$Res> { factory _$$_SavedViewErrorStateCopyWith(_$_SavedViewErrorState value, $Res Function(_$_SavedViewErrorState) then) = __$$_SavedViewErrorStateCopyWithImpl<$Res>; @override @useResult $Res call( {Map correspondents, Map documentTypes, Map tags, Map storagePaths}); } /// @nodoc class __$$_SavedViewErrorStateCopyWithImpl<$Res> extends _$SavedViewStateCopyWithImpl<$Res, _$_SavedViewErrorState> implements _$$_SavedViewErrorStateCopyWith<$Res> { __$$_SavedViewErrorStateCopyWithImpl(_$_SavedViewErrorState _value, $Res Function(_$_SavedViewErrorState) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? correspondents = null, Object? documentTypes = null, Object? tags = null, Object? storagePaths = null, }) { return _then(_$_SavedViewErrorState( correspondents: null == correspondents ? _value._correspondents : correspondents // ignore: cast_nullable_to_non_nullable as Map, documentTypes: null == documentTypes ? _value._documentTypes : documentTypes // ignore: cast_nullable_to_non_nullable as Map, tags: null == tags ? _value._tags : tags // ignore: cast_nullable_to_non_nullable as Map, storagePaths: null == storagePaths ? _value._storagePaths : storagePaths // ignore: cast_nullable_to_non_nullable as Map, )); } } /// @nodoc class _$_SavedViewErrorState implements _SavedViewErrorState { const _$_SavedViewErrorState( {required final Map correspondents, required final Map documentTypes, required final Map tags, required final Map storagePaths}) : _correspondents = correspondents, _documentTypes = documentTypes, _tags = tags, _storagePaths = storagePaths; final Map _correspondents; @override Map get correspondents { if (_correspondents is EqualUnmodifiableMapView) return _correspondents; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_correspondents); } final Map _documentTypes; @override Map get documentTypes { if (_documentTypes is EqualUnmodifiableMapView) return _documentTypes; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_documentTypes); } final Map _tags; @override Map get tags { if (_tags is EqualUnmodifiableMapView) return _tags; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_tags); } final Map _storagePaths; @override Map get storagePaths { if (_storagePaths is EqualUnmodifiableMapView) return _storagePaths; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_storagePaths); } @override String toString() { return 'SavedViewState.error(correspondents: $correspondents, documentTypes: $documentTypes, tags: $tags, storagePaths: $storagePaths)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$_SavedViewErrorState && const DeepCollectionEquality() .equals(other._correspondents, _correspondents) && const DeepCollectionEquality() .equals(other._documentTypes, _documentTypes) && const DeepCollectionEquality().equals(other._tags, _tags) && const DeepCollectionEquality() .equals(other._storagePaths, _storagePaths)); } @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_correspondents), const DeepCollectionEquality().hash(_documentTypes), const DeepCollectionEquality().hash(_tags), const DeepCollectionEquality().hash(_storagePaths)); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$_SavedViewErrorStateCopyWith<_$_SavedViewErrorState> get copyWith => __$$_SavedViewErrorStateCopyWithImpl<_$_SavedViewErrorState>( this, _$identity); @override @optionalTypeArgs TResult when({ required TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths) initial, required TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths) loading, required TResult Function( Map savedViews, Map correspondents, Map documentTypes, Map tags, Map storagePaths) loaded, required TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths) error, }) { return error(correspondents, documentTypes, tags, storagePaths); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? initial, TResult? Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loading, TResult? Function( Map savedViews, Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loaded, TResult? Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? error, }) { return error?.call(correspondents, documentTypes, tags, storagePaths); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? initial, TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loading, TResult Function( Map savedViews, Map correspondents, Map documentTypes, Map tags, Map storagePaths)? loaded, TResult Function( Map correspondents, Map documentTypes, Map tags, Map storagePaths)? error, required TResult orElse(), }) { if (error != null) { return error(correspondents, documentTypes, tags, storagePaths); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_SavedViewIntialState value) initial, required TResult Function(_SavedViewLoadingState value) loading, required TResult Function(_SavedViewLoadedState value) loaded, required TResult Function(_SavedViewErrorState value) error, }) { return error(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_SavedViewIntialState value)? initial, TResult? Function(_SavedViewLoadingState value)? loading, TResult? Function(_SavedViewLoadedState value)? loaded, TResult? Function(_SavedViewErrorState value)? error, }) { return error?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_SavedViewIntialState value)? initial, TResult Function(_SavedViewLoadingState value)? loading, TResult Function(_SavedViewLoadedState value)? loaded, TResult Function(_SavedViewErrorState value)? error, required TResult orElse(), }) { if (error != null) { return error(this); } return orElse(); } } abstract class _SavedViewErrorState implements SavedViewState { const factory _SavedViewErrorState( {required final Map correspondents, required final Map documentTypes, required final Map tags, required final Map storagePaths}) = _$_SavedViewErrorState; @override Map get correspondents; @override Map get documentTypes; @override Map get tags; @override Map get storagePaths; @override @JsonKey(ignore: true) _$$_SavedViewErrorStateCopyWith<_$_SavedViewErrorState> get copyWith => throw _privateConstructorUsedError; }