mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-07 22:07:49 -06:00
1383 lines
47 KiB
Dart
1383 lines
47 KiB
Dart
// 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>(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<int, Correspondent> get correspondents =>
|
|
throw _privateConstructorUsedError;
|
|
Map<int, DocumentType> get documentTypes =>
|
|
throw _privateConstructorUsedError;
|
|
Map<int, Tag> get tags => throw _privateConstructorUsedError;
|
|
Map<int, StoragePath> get storagePaths => throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
initial,
|
|
required TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
loading,
|
|
required TResult Function(
|
|
Map<int, SavedView> savedViews,
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
loaded,
|
|
required TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
error,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
initial,
|
|
TResult? Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loading,
|
|
TResult? Function(
|
|
Map<int, SavedView> savedViews,
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loaded,
|
|
TResult? Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
error,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
initial,
|
|
TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loading,
|
|
TResult Function(
|
|
Map<int, SavedView> savedViews,
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loaded,
|
|
TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
error,
|
|
required TResult orElse(),
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
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 extends Object?>({
|
|
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 extends Object?>({
|
|
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<SavedViewState> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SavedViewStateCopyWith<$Res> {
|
|
factory $SavedViewStateCopyWith(
|
|
SavedViewState value, $Res Function(SavedViewState) then) =
|
|
_$SavedViewStateCopyWithImpl<$Res, SavedViewState>;
|
|
@useResult
|
|
$Res call(
|
|
{Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> 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<int, Correspondent>,
|
|
documentTypes: null == documentTypes
|
|
? _value.documentTypes
|
|
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, DocumentType>,
|
|
tags: null == tags
|
|
? _value.tags
|
|
: tags // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, Tag>,
|
|
storagePaths: null == storagePaths
|
|
? _value.storagePaths
|
|
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, StoragePath>,
|
|
) 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<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> 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<int, Correspondent>,
|
|
documentTypes: null == documentTypes
|
|
? _value._documentTypes
|
|
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, DocumentType>,
|
|
tags: null == tags
|
|
? _value._tags
|
|
: tags // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, Tag>,
|
|
storagePaths: null == storagePaths
|
|
? _value._storagePaths
|
|
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, StoragePath>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$_SavedViewIntialState implements _SavedViewIntialState {
|
|
const _$_SavedViewIntialState(
|
|
{required final Map<int, Correspondent> correspondents,
|
|
required final Map<int, DocumentType> documentTypes,
|
|
required final Map<int, Tag> tags,
|
|
required final Map<int, StoragePath> storagePaths})
|
|
: _correspondents = correspondents,
|
|
_documentTypes = documentTypes,
|
|
_tags = tags,
|
|
_storagePaths = storagePaths;
|
|
|
|
final Map<int, Correspondent> _correspondents;
|
|
@override
|
|
Map<int, Correspondent> get correspondents {
|
|
if (_correspondents is EqualUnmodifiableMapView) return _correspondents;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_correspondents);
|
|
}
|
|
|
|
final Map<int, DocumentType> _documentTypes;
|
|
@override
|
|
Map<int, DocumentType> get documentTypes {
|
|
if (_documentTypes is EqualUnmodifiableMapView) return _documentTypes;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_documentTypes);
|
|
}
|
|
|
|
final Map<int, Tag> _tags;
|
|
@override
|
|
Map<int, Tag> get tags {
|
|
if (_tags is EqualUnmodifiableMapView) return _tags;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_tags);
|
|
}
|
|
|
|
final Map<int, StoragePath> _storagePaths;
|
|
@override
|
|
Map<int, StoragePath> 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<TResult extends Object?>({
|
|
required TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
initial,
|
|
required TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
loading,
|
|
required TResult Function(
|
|
Map<int, SavedView> savedViews,
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
loaded,
|
|
required TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
error,
|
|
}) {
|
|
return initial(correspondents, documentTypes, tags, storagePaths);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
initial,
|
|
TResult? Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loading,
|
|
TResult? Function(
|
|
Map<int, SavedView> savedViews,
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loaded,
|
|
TResult? Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
error,
|
|
}) {
|
|
return initial?.call(correspondents, documentTypes, tags, storagePaths);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
initial,
|
|
TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loading,
|
|
TResult Function(
|
|
Map<int, SavedView> savedViews,
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loaded,
|
|
TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
error,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (initial != null) {
|
|
return initial(correspondents, documentTypes, tags, storagePaths);
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
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 extends Object?>({
|
|
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 extends Object?>({
|
|
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<int, Correspondent> correspondents,
|
|
required final Map<int, DocumentType> documentTypes,
|
|
required final Map<int, Tag> tags,
|
|
required final Map<int, StoragePath> storagePaths}) =
|
|
_$_SavedViewIntialState;
|
|
|
|
@override
|
|
Map<int, Correspondent> get correspondents;
|
|
@override
|
|
Map<int, DocumentType> get documentTypes;
|
|
@override
|
|
Map<int, Tag> get tags;
|
|
@override
|
|
Map<int, StoragePath> 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<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> 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<int, Correspondent>,
|
|
documentTypes: null == documentTypes
|
|
? _value._documentTypes
|
|
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, DocumentType>,
|
|
tags: null == tags
|
|
? _value._tags
|
|
: tags // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, Tag>,
|
|
storagePaths: null == storagePaths
|
|
? _value._storagePaths
|
|
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, StoragePath>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$_SavedViewLoadingState implements _SavedViewLoadingState {
|
|
const _$_SavedViewLoadingState(
|
|
{required final Map<int, Correspondent> correspondents,
|
|
required final Map<int, DocumentType> documentTypes,
|
|
required final Map<int, Tag> tags,
|
|
required final Map<int, StoragePath> storagePaths})
|
|
: _correspondents = correspondents,
|
|
_documentTypes = documentTypes,
|
|
_tags = tags,
|
|
_storagePaths = storagePaths;
|
|
|
|
final Map<int, Correspondent> _correspondents;
|
|
@override
|
|
Map<int, Correspondent> get correspondents {
|
|
if (_correspondents is EqualUnmodifiableMapView) return _correspondents;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_correspondents);
|
|
}
|
|
|
|
final Map<int, DocumentType> _documentTypes;
|
|
@override
|
|
Map<int, DocumentType> get documentTypes {
|
|
if (_documentTypes is EqualUnmodifiableMapView) return _documentTypes;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_documentTypes);
|
|
}
|
|
|
|
final Map<int, Tag> _tags;
|
|
@override
|
|
Map<int, Tag> get tags {
|
|
if (_tags is EqualUnmodifiableMapView) return _tags;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_tags);
|
|
}
|
|
|
|
final Map<int, StoragePath> _storagePaths;
|
|
@override
|
|
Map<int, StoragePath> 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<TResult extends Object?>({
|
|
required TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
initial,
|
|
required TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
loading,
|
|
required TResult Function(
|
|
Map<int, SavedView> savedViews,
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
loaded,
|
|
required TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
error,
|
|
}) {
|
|
return loading(correspondents, documentTypes, tags, storagePaths);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
initial,
|
|
TResult? Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loading,
|
|
TResult? Function(
|
|
Map<int, SavedView> savedViews,
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loaded,
|
|
TResult? Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
error,
|
|
}) {
|
|
return loading?.call(correspondents, documentTypes, tags, storagePaths);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
initial,
|
|
TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loading,
|
|
TResult Function(
|
|
Map<int, SavedView> savedViews,
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loaded,
|
|
TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
error,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (loading != null) {
|
|
return loading(correspondents, documentTypes, tags, storagePaths);
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
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 extends Object?>({
|
|
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 extends Object?>({
|
|
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<int, Correspondent> correspondents,
|
|
required final Map<int, DocumentType> documentTypes,
|
|
required final Map<int, Tag> tags,
|
|
required final Map<int, StoragePath> storagePaths}) =
|
|
_$_SavedViewLoadingState;
|
|
|
|
@override
|
|
Map<int, Correspondent> get correspondents;
|
|
@override
|
|
Map<int, DocumentType> get documentTypes;
|
|
@override
|
|
Map<int, Tag> get tags;
|
|
@override
|
|
Map<int, StoragePath> 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<int, SavedView> savedViews,
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> 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<int, SavedView>,
|
|
correspondents: null == correspondents
|
|
? _value._correspondents
|
|
: correspondents // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, Correspondent>,
|
|
documentTypes: null == documentTypes
|
|
? _value._documentTypes
|
|
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, DocumentType>,
|
|
tags: null == tags
|
|
? _value._tags
|
|
: tags // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, Tag>,
|
|
storagePaths: null == storagePaths
|
|
? _value._storagePaths
|
|
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, StoragePath>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$_SavedViewLoadedState implements _SavedViewLoadedState {
|
|
const _$_SavedViewLoadedState(
|
|
{required final Map<int, SavedView> savedViews,
|
|
required final Map<int, Correspondent> correspondents,
|
|
required final Map<int, DocumentType> documentTypes,
|
|
required final Map<int, Tag> tags,
|
|
required final Map<int, StoragePath> storagePaths})
|
|
: _savedViews = savedViews,
|
|
_correspondents = correspondents,
|
|
_documentTypes = documentTypes,
|
|
_tags = tags,
|
|
_storagePaths = storagePaths;
|
|
|
|
final Map<int, SavedView> _savedViews;
|
|
@override
|
|
Map<int, SavedView> get savedViews {
|
|
if (_savedViews is EqualUnmodifiableMapView) return _savedViews;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_savedViews);
|
|
}
|
|
|
|
final Map<int, Correspondent> _correspondents;
|
|
@override
|
|
Map<int, Correspondent> get correspondents {
|
|
if (_correspondents is EqualUnmodifiableMapView) return _correspondents;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_correspondents);
|
|
}
|
|
|
|
final Map<int, DocumentType> _documentTypes;
|
|
@override
|
|
Map<int, DocumentType> get documentTypes {
|
|
if (_documentTypes is EqualUnmodifiableMapView) return _documentTypes;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_documentTypes);
|
|
}
|
|
|
|
final Map<int, Tag> _tags;
|
|
@override
|
|
Map<int, Tag> get tags {
|
|
if (_tags is EqualUnmodifiableMapView) return _tags;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_tags);
|
|
}
|
|
|
|
final Map<int, StoragePath> _storagePaths;
|
|
@override
|
|
Map<int, StoragePath> 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<TResult extends Object?>({
|
|
required TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
initial,
|
|
required TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
loading,
|
|
required TResult Function(
|
|
Map<int, SavedView> savedViews,
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
loaded,
|
|
required TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
error,
|
|
}) {
|
|
return loaded(
|
|
savedViews, correspondents, documentTypes, tags, storagePaths);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
initial,
|
|
TResult? Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loading,
|
|
TResult? Function(
|
|
Map<int, SavedView> savedViews,
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loaded,
|
|
TResult? Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
error,
|
|
}) {
|
|
return loaded?.call(
|
|
savedViews, correspondents, documentTypes, tags, storagePaths);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
initial,
|
|
TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loading,
|
|
TResult Function(
|
|
Map<int, SavedView> savedViews,
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loaded,
|
|
TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
error,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (loaded != null) {
|
|
return loaded(
|
|
savedViews, correspondents, documentTypes, tags, storagePaths);
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
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 extends Object?>({
|
|
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 extends Object?>({
|
|
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<int, SavedView> savedViews,
|
|
required final Map<int, Correspondent> correspondents,
|
|
required final Map<int, DocumentType> documentTypes,
|
|
required final Map<int, Tag> tags,
|
|
required final Map<int, StoragePath> storagePaths}) =
|
|
_$_SavedViewLoadedState;
|
|
|
|
Map<int, SavedView> get savedViews;
|
|
@override
|
|
Map<int, Correspondent> get correspondents;
|
|
@override
|
|
Map<int, DocumentType> get documentTypes;
|
|
@override
|
|
Map<int, Tag> get tags;
|
|
@override
|
|
Map<int, StoragePath> 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<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> 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<int, Correspondent>,
|
|
documentTypes: null == documentTypes
|
|
? _value._documentTypes
|
|
: documentTypes // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, DocumentType>,
|
|
tags: null == tags
|
|
? _value._tags
|
|
: tags // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, Tag>,
|
|
storagePaths: null == storagePaths
|
|
? _value._storagePaths
|
|
: storagePaths // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, StoragePath>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$_SavedViewErrorState implements _SavedViewErrorState {
|
|
const _$_SavedViewErrorState(
|
|
{required final Map<int, Correspondent> correspondents,
|
|
required final Map<int, DocumentType> documentTypes,
|
|
required final Map<int, Tag> tags,
|
|
required final Map<int, StoragePath> storagePaths})
|
|
: _correspondents = correspondents,
|
|
_documentTypes = documentTypes,
|
|
_tags = tags,
|
|
_storagePaths = storagePaths;
|
|
|
|
final Map<int, Correspondent> _correspondents;
|
|
@override
|
|
Map<int, Correspondent> get correspondents {
|
|
if (_correspondents is EqualUnmodifiableMapView) return _correspondents;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_correspondents);
|
|
}
|
|
|
|
final Map<int, DocumentType> _documentTypes;
|
|
@override
|
|
Map<int, DocumentType> get documentTypes {
|
|
if (_documentTypes is EqualUnmodifiableMapView) return _documentTypes;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_documentTypes);
|
|
}
|
|
|
|
final Map<int, Tag> _tags;
|
|
@override
|
|
Map<int, Tag> get tags {
|
|
if (_tags is EqualUnmodifiableMapView) return _tags;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_tags);
|
|
}
|
|
|
|
final Map<int, StoragePath> _storagePaths;
|
|
@override
|
|
Map<int, StoragePath> 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<TResult extends Object?>({
|
|
required TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
initial,
|
|
required TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
loading,
|
|
required TResult Function(
|
|
Map<int, SavedView> savedViews,
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
loaded,
|
|
required TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)
|
|
error,
|
|
}) {
|
|
return error(correspondents, documentTypes, tags, storagePaths);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
initial,
|
|
TResult? Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loading,
|
|
TResult? Function(
|
|
Map<int, SavedView> savedViews,
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loaded,
|
|
TResult? Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
error,
|
|
}) {
|
|
return error?.call(correspondents, documentTypes, tags, storagePaths);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
initial,
|
|
TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loading,
|
|
TResult Function(
|
|
Map<int, SavedView> savedViews,
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
loaded,
|
|
TResult Function(
|
|
Map<int, Correspondent> correspondents,
|
|
Map<int, DocumentType> documentTypes,
|
|
Map<int, Tag> tags,
|
|
Map<int, StoragePath> storagePaths)?
|
|
error,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (error != null) {
|
|
return error(correspondents, documentTypes, tags, storagePaths);
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
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 extends Object?>({
|
|
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 extends Object?>({
|
|
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<int, Correspondent> correspondents,
|
|
required final Map<int, DocumentType> documentTypes,
|
|
required final Map<int, Tag> tags,
|
|
required final Map<int, StoragePath> storagePaths}) =
|
|
_$_SavedViewErrorState;
|
|
|
|
@override
|
|
Map<int, Correspondent> get correspondents;
|
|
@override
|
|
Map<int, DocumentType> get documentTypes;
|
|
@override
|
|
Map<int, Tag> get tags;
|
|
@override
|
|
Map<int, StoragePath> get storagePaths;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$_SavedViewErrorStateCopyWith<_$_SavedViewErrorState> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|