mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 04:08:03 -06:00
586 lines
18 KiB
Dart
586 lines
18 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 {
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() initial,
|
|
required TResult Function() loading,
|
|
required TResult Function(Map<int, SavedView> savedViews) loaded,
|
|
required TResult Function() error,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? initial,
|
|
TResult? Function()? loading,
|
|
TResult? Function(Map<int, SavedView> savedViews)? loaded,
|
|
TResult? Function()? error,
|
|
}) =>
|
|
throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? initial,
|
|
TResult Function()? loading,
|
|
TResult Function(Map<int, SavedView> savedViews)? loaded,
|
|
TResult Function()? 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;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SavedViewStateCopyWith<$Res> {
|
|
factory $SavedViewStateCopyWith(
|
|
SavedViewState value, $Res Function(SavedViewState) then) =
|
|
_$SavedViewStateCopyWithImpl<$Res, SavedViewState>;
|
|
}
|
|
|
|
/// @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;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$_SavedViewIntialStateCopyWith<$Res> {
|
|
factory _$$_SavedViewIntialStateCopyWith(_$_SavedViewIntialState value,
|
|
$Res Function(_$_SavedViewIntialState) then) =
|
|
__$$_SavedViewIntialStateCopyWithImpl<$Res>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$_SavedViewIntialStateCopyWithImpl<$Res>
|
|
extends _$SavedViewStateCopyWithImpl<$Res, _$_SavedViewIntialState>
|
|
implements _$$_SavedViewIntialStateCopyWith<$Res> {
|
|
__$$_SavedViewIntialStateCopyWithImpl(_$_SavedViewIntialState _value,
|
|
$Res Function(_$_SavedViewIntialState) _then)
|
|
: super(_value, _then);
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$_SavedViewIntialState implements _SavedViewIntialState {
|
|
const _$_SavedViewIntialState();
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SavedViewState.initial()';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType && other is _$_SavedViewIntialState);
|
|
}
|
|
|
|
@override
|
|
int get hashCode => runtimeType.hashCode;
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() initial,
|
|
required TResult Function() loading,
|
|
required TResult Function(Map<int, SavedView> savedViews) loaded,
|
|
required TResult Function() error,
|
|
}) {
|
|
return initial();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? initial,
|
|
TResult? Function()? loading,
|
|
TResult? Function(Map<int, SavedView> savedViews)? loaded,
|
|
TResult? Function()? error,
|
|
}) {
|
|
return initial?.call();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? initial,
|
|
TResult Function()? loading,
|
|
TResult Function(Map<int, SavedView> savedViews)? loaded,
|
|
TResult Function()? error,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (initial != null) {
|
|
return initial();
|
|
}
|
|
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() = _$_SavedViewIntialState;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$_SavedViewLoadingStateCopyWith<$Res> {
|
|
factory _$$_SavedViewLoadingStateCopyWith(_$_SavedViewLoadingState value,
|
|
$Res Function(_$_SavedViewLoadingState) then) =
|
|
__$$_SavedViewLoadingStateCopyWithImpl<$Res>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$_SavedViewLoadingStateCopyWithImpl<$Res>
|
|
extends _$SavedViewStateCopyWithImpl<$Res, _$_SavedViewLoadingState>
|
|
implements _$$_SavedViewLoadingStateCopyWith<$Res> {
|
|
__$$_SavedViewLoadingStateCopyWithImpl(_$_SavedViewLoadingState _value,
|
|
$Res Function(_$_SavedViewLoadingState) _then)
|
|
: super(_value, _then);
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$_SavedViewLoadingState implements _SavedViewLoadingState {
|
|
const _$_SavedViewLoadingState();
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SavedViewState.loading()';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType && other is _$_SavedViewLoadingState);
|
|
}
|
|
|
|
@override
|
|
int get hashCode => runtimeType.hashCode;
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() initial,
|
|
required TResult Function() loading,
|
|
required TResult Function(Map<int, SavedView> savedViews) loaded,
|
|
required TResult Function() error,
|
|
}) {
|
|
return loading();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? initial,
|
|
TResult? Function()? loading,
|
|
TResult? Function(Map<int, SavedView> savedViews)? loaded,
|
|
TResult? Function()? error,
|
|
}) {
|
|
return loading?.call();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? initial,
|
|
TResult Function()? loading,
|
|
TResult Function(Map<int, SavedView> savedViews)? loaded,
|
|
TResult Function()? error,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (loading != null) {
|
|
return loading();
|
|
}
|
|
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() = _$_SavedViewLoadingState;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$_SavedViewLoadedStateCopyWith<$Res> {
|
|
factory _$$_SavedViewLoadedStateCopyWith(_$_SavedViewLoadedState value,
|
|
$Res Function(_$_SavedViewLoadedState) then) =
|
|
__$$_SavedViewLoadedStateCopyWithImpl<$Res>;
|
|
@useResult
|
|
$Res call({Map<int, SavedView> savedViews});
|
|
}
|
|
|
|
/// @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,
|
|
}) {
|
|
return _then(_$_SavedViewLoadedState(
|
|
savedViews: null == savedViews
|
|
? _value._savedViews
|
|
: savedViews // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, SavedView>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$_SavedViewLoadedState implements _SavedViewLoadedState {
|
|
const _$_SavedViewLoadedState({required final Map<int, SavedView> savedViews})
|
|
: _savedViews = savedViews;
|
|
|
|
final Map<int, SavedView> _savedViews;
|
|
@override
|
|
Map<int, SavedView> get savedViews {
|
|
if (_savedViews is EqualUnmodifiableMapView) return _savedViews;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_savedViews);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SavedViewState.loaded(savedViews: $savedViews)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$_SavedViewLoadedState &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._savedViews, _savedViews));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType, const DeepCollectionEquality().hash(_savedViews));
|
|
|
|
@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() initial,
|
|
required TResult Function() loading,
|
|
required TResult Function(Map<int, SavedView> savedViews) loaded,
|
|
required TResult Function() error,
|
|
}) {
|
|
return loaded(savedViews);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? initial,
|
|
TResult? Function()? loading,
|
|
TResult? Function(Map<int, SavedView> savedViews)? loaded,
|
|
TResult? Function()? error,
|
|
}) {
|
|
return loaded?.call(savedViews);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? initial,
|
|
TResult Function()? loading,
|
|
TResult Function(Map<int, SavedView> savedViews)? loaded,
|
|
TResult Function()? error,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (loaded != null) {
|
|
return loaded(savedViews);
|
|
}
|
|
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}) =
|
|
_$_SavedViewLoadedState;
|
|
|
|
Map<int, SavedView> get savedViews;
|
|
@JsonKey(ignore: true)
|
|
_$$_SavedViewLoadedStateCopyWith<_$_SavedViewLoadedState> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$_SavedViewErrorStateCopyWith<$Res> {
|
|
factory _$$_SavedViewErrorStateCopyWith(_$_SavedViewErrorState value,
|
|
$Res Function(_$_SavedViewErrorState) then) =
|
|
__$$_SavedViewErrorStateCopyWithImpl<$Res>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$_SavedViewErrorStateCopyWithImpl<$Res>
|
|
extends _$SavedViewStateCopyWithImpl<$Res, _$_SavedViewErrorState>
|
|
implements _$$_SavedViewErrorStateCopyWith<$Res> {
|
|
__$$_SavedViewErrorStateCopyWithImpl(_$_SavedViewErrorState _value,
|
|
$Res Function(_$_SavedViewErrorState) _then)
|
|
: super(_value, _then);
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$_SavedViewErrorState implements _SavedViewErrorState {
|
|
const _$_SavedViewErrorState();
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SavedViewState.error()';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(dynamic other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType && other is _$_SavedViewErrorState);
|
|
}
|
|
|
|
@override
|
|
int get hashCode => runtimeType.hashCode;
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() initial,
|
|
required TResult Function() loading,
|
|
required TResult Function(Map<int, SavedView> savedViews) loaded,
|
|
required TResult Function() error,
|
|
}) {
|
|
return error();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? initial,
|
|
TResult? Function()? loading,
|
|
TResult? Function(Map<int, SavedView> savedViews)? loaded,
|
|
TResult? Function()? error,
|
|
}) {
|
|
return error?.call();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? initial,
|
|
TResult Function()? loading,
|
|
TResult Function(Map<int, SavedView> savedViews)? loaded,
|
|
TResult Function()? error,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (error != null) {
|
|
return error();
|
|
}
|
|
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() = _$_SavedViewErrorState;
|
|
}
|