1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225 |
- // coverage:ignore-file
- // GENERATED CODE - DO NOT MODIFY BY HAND
- // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target
- part of 'doc_bloc.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 informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
- /// @nodoc
- class _$DocumentEventTearOff {
- const _$DocumentEventTearOff();
- Initial initial() {
- return const Initial();
- }
- Deleted deleted() {
- return const Deleted();
- }
- Restore restore() {
- return const Restore();
- }
- RestorePage restorePage() {
- return const RestorePage();
- }
- DeletePermanently deletePermanently() {
- return const DeletePermanently();
- }
- }
- /// @nodoc
- const $DocumentEvent = _$DocumentEventTearOff();
- /// @nodoc
- mixin _$DocumentEvent {
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() initial,
- required TResult Function() deleted,
- required TResult Function() restore,
- required TResult Function() restorePage,
- required TResult Function() deletePermanently,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult? whenOrNull<TResult extends Object?>({
- TResult Function()? initial,
- TResult Function()? deleted,
- TResult Function()? restore,
- TResult Function()? restorePage,
- TResult Function()? deletePermanently,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? initial,
- TResult Function()? deleted,
- TResult Function()? restore,
- TResult Function()? restorePage,
- TResult Function()? deletePermanently,
- required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(Initial value) initial,
- required TResult Function(Deleted value) deleted,
- required TResult Function(Restore value) restore,
- required TResult Function(RestorePage value) restorePage,
- required TResult Function(DeletePermanently value) deletePermanently,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult? mapOrNull<TResult extends Object?>({
- TResult Function(Initial value)? initial,
- TResult Function(Deleted value)? deleted,
- TResult Function(Restore value)? restore,
- TResult Function(RestorePage value)? restorePage,
- TResult Function(DeletePermanently value)? deletePermanently,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(Initial value)? initial,
- TResult Function(Deleted value)? deleted,
- TResult Function(Restore value)? restore,
- TResult Function(RestorePage value)? restorePage,
- TResult Function(DeletePermanently value)? deletePermanently,
- required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $DocumentEventCopyWith<$Res> {
- factory $DocumentEventCopyWith(
- DocumentEvent value, $Res Function(DocumentEvent) then) =
- _$DocumentEventCopyWithImpl<$Res>;
- }
- /// @nodoc
- class _$DocumentEventCopyWithImpl<$Res>
- implements $DocumentEventCopyWith<$Res> {
- _$DocumentEventCopyWithImpl(this._value, this._then);
- final DocumentEvent _value;
- // ignore: unused_field
- final $Res Function(DocumentEvent) _then;
- }
- /// @nodoc
- abstract class $InitialCopyWith<$Res> {
- factory $InitialCopyWith(Initial value, $Res Function(Initial) then) =
- _$InitialCopyWithImpl<$Res>;
- }
- /// @nodoc
- class _$InitialCopyWithImpl<$Res> extends _$DocumentEventCopyWithImpl<$Res>
- implements $InitialCopyWith<$Res> {
- _$InitialCopyWithImpl(Initial _value, $Res Function(Initial) _then)
- : super(_value, (v) => _then(v as Initial));
- @override
- Initial get _value => super._value as Initial;
- }
- /// @nodoc
- class _$Initial implements Initial {
- const _$Initial();
- @override
- String toString() {
- return 'DocumentEvent.initial()';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) || (other is Initial);
- }
- @override
- int get hashCode => runtimeType.hashCode;
- @override
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() initial,
- required TResult Function() deleted,
- required TResult Function() restore,
- required TResult Function() restorePage,
- required TResult Function() deletePermanently,
- }) {
- return initial();
- }
- @override
- @optionalTypeArgs
- TResult? whenOrNull<TResult extends Object?>({
- TResult Function()? initial,
- TResult Function()? deleted,
- TResult Function()? restore,
- TResult Function()? restorePage,
- TResult Function()? deletePermanently,
- }) {
- return initial?.call();
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? initial,
- TResult Function()? deleted,
- TResult Function()? restore,
- TResult Function()? restorePage,
- TResult Function()? deletePermanently,
- required TResult orElse(),
- }) {
- if (initial != null) {
- return initial();
- }
- return orElse();
- }
- @override
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(Initial value) initial,
- required TResult Function(Deleted value) deleted,
- required TResult Function(Restore value) restore,
- required TResult Function(RestorePage value) restorePage,
- required TResult Function(DeletePermanently value) deletePermanently,
- }) {
- return initial(this);
- }
- @override
- @optionalTypeArgs
- TResult? mapOrNull<TResult extends Object?>({
- TResult Function(Initial value)? initial,
- TResult Function(Deleted value)? deleted,
- TResult Function(Restore value)? restore,
- TResult Function(RestorePage value)? restorePage,
- TResult Function(DeletePermanently value)? deletePermanently,
- }) {
- return initial?.call(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(Initial value)? initial,
- TResult Function(Deleted value)? deleted,
- TResult Function(Restore value)? restore,
- TResult Function(RestorePage value)? restorePage,
- TResult Function(DeletePermanently value)? deletePermanently,
- required TResult orElse(),
- }) {
- if (initial != null) {
- return initial(this);
- }
- return orElse();
- }
- }
- abstract class Initial implements DocumentEvent {
- const factory Initial() = _$Initial;
- }
- /// @nodoc
- abstract class $DeletedCopyWith<$Res> {
- factory $DeletedCopyWith(Deleted value, $Res Function(Deleted) then) =
- _$DeletedCopyWithImpl<$Res>;
- }
- /// @nodoc
- class _$DeletedCopyWithImpl<$Res> extends _$DocumentEventCopyWithImpl<$Res>
- implements $DeletedCopyWith<$Res> {
- _$DeletedCopyWithImpl(Deleted _value, $Res Function(Deleted) _then)
- : super(_value, (v) => _then(v as Deleted));
- @override
- Deleted get _value => super._value as Deleted;
- }
- /// @nodoc
- class _$Deleted implements Deleted {
- const _$Deleted();
- @override
- String toString() {
- return 'DocumentEvent.deleted()';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) || (other is Deleted);
- }
- @override
- int get hashCode => runtimeType.hashCode;
- @override
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() initial,
- required TResult Function() deleted,
- required TResult Function() restore,
- required TResult Function() restorePage,
- required TResult Function() deletePermanently,
- }) {
- return deleted();
- }
- @override
- @optionalTypeArgs
- TResult? whenOrNull<TResult extends Object?>({
- TResult Function()? initial,
- TResult Function()? deleted,
- TResult Function()? restore,
- TResult Function()? restorePage,
- TResult Function()? deletePermanently,
- }) {
- return deleted?.call();
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? initial,
- TResult Function()? deleted,
- TResult Function()? restore,
- TResult Function()? restorePage,
- TResult Function()? deletePermanently,
- required TResult orElse(),
- }) {
- if (deleted != null) {
- return deleted();
- }
- return orElse();
- }
- @override
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(Initial value) initial,
- required TResult Function(Deleted value) deleted,
- required TResult Function(Restore value) restore,
- required TResult Function(RestorePage value) restorePage,
- required TResult Function(DeletePermanently value) deletePermanently,
- }) {
- return deleted(this);
- }
- @override
- @optionalTypeArgs
- TResult? mapOrNull<TResult extends Object?>({
- TResult Function(Initial value)? initial,
- TResult Function(Deleted value)? deleted,
- TResult Function(Restore value)? restore,
- TResult Function(RestorePage value)? restorePage,
- TResult Function(DeletePermanently value)? deletePermanently,
- }) {
- return deleted?.call(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(Initial value)? initial,
- TResult Function(Deleted value)? deleted,
- TResult Function(Restore value)? restore,
- TResult Function(RestorePage value)? restorePage,
- TResult Function(DeletePermanently value)? deletePermanently,
- required TResult orElse(),
- }) {
- if (deleted != null) {
- return deleted(this);
- }
- return orElse();
- }
- }
- abstract class Deleted implements DocumentEvent {
- const factory Deleted() = _$Deleted;
- }
- /// @nodoc
- abstract class $RestoreCopyWith<$Res> {
- factory $RestoreCopyWith(Restore value, $Res Function(Restore) then) =
- _$RestoreCopyWithImpl<$Res>;
- }
- /// @nodoc
- class _$RestoreCopyWithImpl<$Res> extends _$DocumentEventCopyWithImpl<$Res>
- implements $RestoreCopyWith<$Res> {
- _$RestoreCopyWithImpl(Restore _value, $Res Function(Restore) _then)
- : super(_value, (v) => _then(v as Restore));
- @override
- Restore get _value => super._value as Restore;
- }
- /// @nodoc
- class _$Restore implements Restore {
- const _$Restore();
- @override
- String toString() {
- return 'DocumentEvent.restore()';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) || (other is Restore);
- }
- @override
- int get hashCode => runtimeType.hashCode;
- @override
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() initial,
- required TResult Function() deleted,
- required TResult Function() restore,
- required TResult Function() restorePage,
- required TResult Function() deletePermanently,
- }) {
- return restore();
- }
- @override
- @optionalTypeArgs
- TResult? whenOrNull<TResult extends Object?>({
- TResult Function()? initial,
- TResult Function()? deleted,
- TResult Function()? restore,
- TResult Function()? restorePage,
- TResult Function()? deletePermanently,
- }) {
- return restore?.call();
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? initial,
- TResult Function()? deleted,
- TResult Function()? restore,
- TResult Function()? restorePage,
- TResult Function()? deletePermanently,
- required TResult orElse(),
- }) {
- if (restore != null) {
- return restore();
- }
- return orElse();
- }
- @override
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(Initial value) initial,
- required TResult Function(Deleted value) deleted,
- required TResult Function(Restore value) restore,
- required TResult Function(RestorePage value) restorePage,
- required TResult Function(DeletePermanently value) deletePermanently,
- }) {
- return restore(this);
- }
- @override
- @optionalTypeArgs
- TResult? mapOrNull<TResult extends Object?>({
- TResult Function(Initial value)? initial,
- TResult Function(Deleted value)? deleted,
- TResult Function(Restore value)? restore,
- TResult Function(RestorePage value)? restorePage,
- TResult Function(DeletePermanently value)? deletePermanently,
- }) {
- return restore?.call(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(Initial value)? initial,
- TResult Function(Deleted value)? deleted,
- TResult Function(Restore value)? restore,
- TResult Function(RestorePage value)? restorePage,
- TResult Function(DeletePermanently value)? deletePermanently,
- required TResult orElse(),
- }) {
- if (restore != null) {
- return restore(this);
- }
- return orElse();
- }
- }
- abstract class Restore implements DocumentEvent {
- const factory Restore() = _$Restore;
- }
- /// @nodoc
- abstract class $RestorePageCopyWith<$Res> {
- factory $RestorePageCopyWith(
- RestorePage value, $Res Function(RestorePage) then) =
- _$RestorePageCopyWithImpl<$Res>;
- }
- /// @nodoc
- class _$RestorePageCopyWithImpl<$Res> extends _$DocumentEventCopyWithImpl<$Res>
- implements $RestorePageCopyWith<$Res> {
- _$RestorePageCopyWithImpl(
- RestorePage _value, $Res Function(RestorePage) _then)
- : super(_value, (v) => _then(v as RestorePage));
- @override
- RestorePage get _value => super._value as RestorePage;
- }
- /// @nodoc
- class _$RestorePage implements RestorePage {
- const _$RestorePage();
- @override
- String toString() {
- return 'DocumentEvent.restorePage()';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) || (other is RestorePage);
- }
- @override
- int get hashCode => runtimeType.hashCode;
- @override
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() initial,
- required TResult Function() deleted,
- required TResult Function() restore,
- required TResult Function() restorePage,
- required TResult Function() deletePermanently,
- }) {
- return restorePage();
- }
- @override
- @optionalTypeArgs
- TResult? whenOrNull<TResult extends Object?>({
- TResult Function()? initial,
- TResult Function()? deleted,
- TResult Function()? restore,
- TResult Function()? restorePage,
- TResult Function()? deletePermanently,
- }) {
- return restorePage?.call();
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? initial,
- TResult Function()? deleted,
- TResult Function()? restore,
- TResult Function()? restorePage,
- TResult Function()? deletePermanently,
- required TResult orElse(),
- }) {
- if (restorePage != null) {
- return restorePage();
- }
- return orElse();
- }
- @override
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(Initial value) initial,
- required TResult Function(Deleted value) deleted,
- required TResult Function(Restore value) restore,
- required TResult Function(RestorePage value) restorePage,
- required TResult Function(DeletePermanently value) deletePermanently,
- }) {
- return restorePage(this);
- }
- @override
- @optionalTypeArgs
- TResult? mapOrNull<TResult extends Object?>({
- TResult Function(Initial value)? initial,
- TResult Function(Deleted value)? deleted,
- TResult Function(Restore value)? restore,
- TResult Function(RestorePage value)? restorePage,
- TResult Function(DeletePermanently value)? deletePermanently,
- }) {
- return restorePage?.call(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(Initial value)? initial,
- TResult Function(Deleted value)? deleted,
- TResult Function(Restore value)? restore,
- TResult Function(RestorePage value)? restorePage,
- TResult Function(DeletePermanently value)? deletePermanently,
- required TResult orElse(),
- }) {
- if (restorePage != null) {
- return restorePage(this);
- }
- return orElse();
- }
- }
- abstract class RestorePage implements DocumentEvent {
- const factory RestorePage() = _$RestorePage;
- }
- /// @nodoc
- abstract class $DeletePermanentlyCopyWith<$Res> {
- factory $DeletePermanentlyCopyWith(
- DeletePermanently value, $Res Function(DeletePermanently) then) =
- _$DeletePermanentlyCopyWithImpl<$Res>;
- }
- /// @nodoc
- class _$DeletePermanentlyCopyWithImpl<$Res>
- extends _$DocumentEventCopyWithImpl<$Res>
- implements $DeletePermanentlyCopyWith<$Res> {
- _$DeletePermanentlyCopyWithImpl(
- DeletePermanently _value, $Res Function(DeletePermanently) _then)
- : super(_value, (v) => _then(v as DeletePermanently));
- @override
- DeletePermanently get _value => super._value as DeletePermanently;
- }
- /// @nodoc
- class _$DeletePermanently implements DeletePermanently {
- const _$DeletePermanently();
- @override
- String toString() {
- return 'DocumentEvent.deletePermanently()';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) || (other is DeletePermanently);
- }
- @override
- int get hashCode => runtimeType.hashCode;
- @override
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() initial,
- required TResult Function() deleted,
- required TResult Function() restore,
- required TResult Function() restorePage,
- required TResult Function() deletePermanently,
- }) {
- return deletePermanently();
- }
- @override
- @optionalTypeArgs
- TResult? whenOrNull<TResult extends Object?>({
- TResult Function()? initial,
- TResult Function()? deleted,
- TResult Function()? restore,
- TResult Function()? restorePage,
- TResult Function()? deletePermanently,
- }) {
- return deletePermanently?.call();
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? initial,
- TResult Function()? deleted,
- TResult Function()? restore,
- TResult Function()? restorePage,
- TResult Function()? deletePermanently,
- required TResult orElse(),
- }) {
- if (deletePermanently != null) {
- return deletePermanently();
- }
- return orElse();
- }
- @override
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(Initial value) initial,
- required TResult Function(Deleted value) deleted,
- required TResult Function(Restore value) restore,
- required TResult Function(RestorePage value) restorePage,
- required TResult Function(DeletePermanently value) deletePermanently,
- }) {
- return deletePermanently(this);
- }
- @override
- @optionalTypeArgs
- TResult? mapOrNull<TResult extends Object?>({
- TResult Function(Initial value)? initial,
- TResult Function(Deleted value)? deleted,
- TResult Function(Restore value)? restore,
- TResult Function(RestorePage value)? restorePage,
- TResult Function(DeletePermanently value)? deletePermanently,
- }) {
- return deletePermanently?.call(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(Initial value)? initial,
- TResult Function(Deleted value)? deleted,
- TResult Function(Restore value)? restore,
- TResult Function(RestorePage value)? restorePage,
- TResult Function(DeletePermanently value)? deletePermanently,
- required TResult orElse(),
- }) {
- if (deletePermanently != null) {
- return deletePermanently(this);
- }
- return orElse();
- }
- }
- abstract class DeletePermanently implements DocumentEvent {
- const factory DeletePermanently() = _$DeletePermanently;
- }
- /// @nodoc
- class _$DocumentStateTearOff {
- const _$DocumentStateTearOff();
- _DocumentState call(
- {required DocumentLoadingState loadingState,
- required bool isDeleted,
- required bool forceClose}) {
- return _DocumentState(
- loadingState: loadingState,
- isDeleted: isDeleted,
- forceClose: forceClose,
- );
- }
- }
- /// @nodoc
- const $DocumentState = _$DocumentStateTearOff();
- /// @nodoc
- mixin _$DocumentState {
- DocumentLoadingState get loadingState => throw _privateConstructorUsedError;
- bool get isDeleted => throw _privateConstructorUsedError;
- bool get forceClose => throw _privateConstructorUsedError;
- @JsonKey(ignore: true)
- $DocumentStateCopyWith<DocumentState> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $DocumentStateCopyWith<$Res> {
- factory $DocumentStateCopyWith(
- DocumentState value, $Res Function(DocumentState) then) =
- _$DocumentStateCopyWithImpl<$Res>;
- $Res call(
- {DocumentLoadingState loadingState, bool isDeleted, bool forceClose});
- $DocumentLoadingStateCopyWith<$Res> get loadingState;
- }
- /// @nodoc
- class _$DocumentStateCopyWithImpl<$Res>
- implements $DocumentStateCopyWith<$Res> {
- _$DocumentStateCopyWithImpl(this._value, this._then);
- final DocumentState _value;
- // ignore: unused_field
- final $Res Function(DocumentState) _then;
- @override
- $Res call({
- Object? loadingState = freezed,
- Object? isDeleted = freezed,
- Object? forceClose = freezed,
- }) {
- return _then(_value.copyWith(
- loadingState: loadingState == freezed
- ? _value.loadingState
- : loadingState // ignore: cast_nullable_to_non_nullable
- as DocumentLoadingState,
- isDeleted: isDeleted == freezed
- ? _value.isDeleted
- : isDeleted // ignore: cast_nullable_to_non_nullable
- as bool,
- forceClose: forceClose == freezed
- ? _value.forceClose
- : forceClose // ignore: cast_nullable_to_non_nullable
- as bool,
- ));
- }
- @override
- $DocumentLoadingStateCopyWith<$Res> get loadingState {
- return $DocumentLoadingStateCopyWith<$Res>(_value.loadingState, (value) {
- return _then(_value.copyWith(loadingState: value));
- });
- }
- }
- /// @nodoc
- abstract class _$DocumentStateCopyWith<$Res>
- implements $DocumentStateCopyWith<$Res> {
- factory _$DocumentStateCopyWith(
- _DocumentState value, $Res Function(_DocumentState) then) =
- __$DocumentStateCopyWithImpl<$Res>;
- @override
- $Res call(
- {DocumentLoadingState loadingState, bool isDeleted, bool forceClose});
- @override
- $DocumentLoadingStateCopyWith<$Res> get loadingState;
- }
- /// @nodoc
- class __$DocumentStateCopyWithImpl<$Res>
- extends _$DocumentStateCopyWithImpl<$Res>
- implements _$DocumentStateCopyWith<$Res> {
- __$DocumentStateCopyWithImpl(
- _DocumentState _value, $Res Function(_DocumentState) _then)
- : super(_value, (v) => _then(v as _DocumentState));
- @override
- _DocumentState get _value => super._value as _DocumentState;
- @override
- $Res call({
- Object? loadingState = freezed,
- Object? isDeleted = freezed,
- Object? forceClose = freezed,
- }) {
- return _then(_DocumentState(
- loadingState: loadingState == freezed
- ? _value.loadingState
- : loadingState // ignore: cast_nullable_to_non_nullable
- as DocumentLoadingState,
- isDeleted: isDeleted == freezed
- ? _value.isDeleted
- : isDeleted // ignore: cast_nullable_to_non_nullable
- as bool,
- forceClose: forceClose == freezed
- ? _value.forceClose
- : forceClose // ignore: cast_nullable_to_non_nullable
- as bool,
- ));
- }
- }
- /// @nodoc
- class _$_DocumentState implements _DocumentState {
- const _$_DocumentState(
- {required this.loadingState,
- required this.isDeleted,
- required this.forceClose});
- @override
- final DocumentLoadingState loadingState;
- @override
- final bool isDeleted;
- @override
- final bool forceClose;
- @override
- String toString() {
- return 'DocumentState(loadingState: $loadingState, isDeleted: $isDeleted, forceClose: $forceClose)';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) ||
- (other is _DocumentState &&
- (identical(other.loadingState, loadingState) ||
- const DeepCollectionEquality()
- .equals(other.loadingState, loadingState)) &&
- (identical(other.isDeleted, isDeleted) ||
- const DeepCollectionEquality()
- .equals(other.isDeleted, isDeleted)) &&
- (identical(other.forceClose, forceClose) ||
- const DeepCollectionEquality()
- .equals(other.forceClose, forceClose)));
- }
- @override
- int get hashCode =>
- runtimeType.hashCode ^
- const DeepCollectionEquality().hash(loadingState) ^
- const DeepCollectionEquality().hash(isDeleted) ^
- const DeepCollectionEquality().hash(forceClose);
- @JsonKey(ignore: true)
- @override
- _$DocumentStateCopyWith<_DocumentState> get copyWith =>
- __$DocumentStateCopyWithImpl<_DocumentState>(this, _$identity);
- }
- abstract class _DocumentState implements DocumentState {
- const factory _DocumentState(
- {required DocumentLoadingState loadingState,
- required bool isDeleted,
- required bool forceClose}) = _$_DocumentState;
- @override
- DocumentLoadingState get loadingState => throw _privateConstructorUsedError;
- @override
- bool get isDeleted => throw _privateConstructorUsedError;
- @override
- bool get forceClose => throw _privateConstructorUsedError;
- @override
- @JsonKey(ignore: true)
- _$DocumentStateCopyWith<_DocumentState> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- class _$DocumentLoadingStateTearOff {
- const _$DocumentLoadingStateTearOff();
- _Loading loading() {
- return const _Loading();
- }
- _Finish finish(Either<Unit, FlowyError> successOrFail) {
- return _Finish(
- successOrFail,
- );
- }
- }
- /// @nodoc
- const $DocumentLoadingState = _$DocumentLoadingStateTearOff();
- /// @nodoc
- mixin _$DocumentLoadingState {
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() loading,
- required TResult Function(Either<Unit, FlowyError> successOrFail) finish,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult? whenOrNull<TResult extends Object?>({
- TResult Function()? loading,
- TResult Function(Either<Unit, FlowyError> successOrFail)? finish,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? loading,
- TResult Function(Either<Unit, FlowyError> successOrFail)? finish,
- required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(_Loading value) loading,
- required TResult Function(_Finish value) finish,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult? mapOrNull<TResult extends Object?>({
- TResult Function(_Loading value)? loading,
- TResult Function(_Finish value)? finish,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(_Loading value)? loading,
- TResult Function(_Finish value)? finish,
- required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $DocumentLoadingStateCopyWith<$Res> {
- factory $DocumentLoadingStateCopyWith(DocumentLoadingState value,
- $Res Function(DocumentLoadingState) then) =
- _$DocumentLoadingStateCopyWithImpl<$Res>;
- }
- /// @nodoc
- class _$DocumentLoadingStateCopyWithImpl<$Res>
- implements $DocumentLoadingStateCopyWith<$Res> {
- _$DocumentLoadingStateCopyWithImpl(this._value, this._then);
- final DocumentLoadingState _value;
- // ignore: unused_field
- final $Res Function(DocumentLoadingState) _then;
- }
- /// @nodoc
- abstract class _$LoadingCopyWith<$Res> {
- factory _$LoadingCopyWith(_Loading value, $Res Function(_Loading) then) =
- __$LoadingCopyWithImpl<$Res>;
- }
- /// @nodoc
- class __$LoadingCopyWithImpl<$Res>
- extends _$DocumentLoadingStateCopyWithImpl<$Res>
- implements _$LoadingCopyWith<$Res> {
- __$LoadingCopyWithImpl(_Loading _value, $Res Function(_Loading) _then)
- : super(_value, (v) => _then(v as _Loading));
- @override
- _Loading get _value => super._value as _Loading;
- }
- /// @nodoc
- class _$_Loading implements _Loading {
- const _$_Loading();
- @override
- String toString() {
- return 'DocumentLoadingState.loading()';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) || (other is _Loading);
- }
- @override
- int get hashCode => runtimeType.hashCode;
- @override
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() loading,
- required TResult Function(Either<Unit, FlowyError> successOrFail) finish,
- }) {
- return loading();
- }
- @override
- @optionalTypeArgs
- TResult? whenOrNull<TResult extends Object?>({
- TResult Function()? loading,
- TResult Function(Either<Unit, FlowyError> successOrFail)? finish,
- }) {
- return loading?.call();
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? loading,
- TResult Function(Either<Unit, FlowyError> successOrFail)? finish,
- required TResult orElse(),
- }) {
- if (loading != null) {
- return loading();
- }
- return orElse();
- }
- @override
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(_Loading value) loading,
- required TResult Function(_Finish value) finish,
- }) {
- return loading(this);
- }
- @override
- @optionalTypeArgs
- TResult? mapOrNull<TResult extends Object?>({
- TResult Function(_Loading value)? loading,
- TResult Function(_Finish value)? finish,
- }) {
- return loading?.call(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(_Loading value)? loading,
- TResult Function(_Finish value)? finish,
- required TResult orElse(),
- }) {
- if (loading != null) {
- return loading(this);
- }
- return orElse();
- }
- }
- abstract class _Loading implements DocumentLoadingState {
- const factory _Loading() = _$_Loading;
- }
- /// @nodoc
- abstract class _$FinishCopyWith<$Res> {
- factory _$FinishCopyWith(_Finish value, $Res Function(_Finish) then) =
- __$FinishCopyWithImpl<$Res>;
- $Res call({Either<Unit, FlowyError> successOrFail});
- }
- /// @nodoc
- class __$FinishCopyWithImpl<$Res>
- extends _$DocumentLoadingStateCopyWithImpl<$Res>
- implements _$FinishCopyWith<$Res> {
- __$FinishCopyWithImpl(_Finish _value, $Res Function(_Finish) _then)
- : super(_value, (v) => _then(v as _Finish));
- @override
- _Finish get _value => super._value as _Finish;
- @override
- $Res call({
- Object? successOrFail = freezed,
- }) {
- return _then(_Finish(
- successOrFail == freezed
- ? _value.successOrFail
- : successOrFail // ignore: cast_nullable_to_non_nullable
- as Either<Unit, FlowyError>,
- ));
- }
- }
- /// @nodoc
- class _$_Finish implements _Finish {
- const _$_Finish(this.successOrFail);
- @override
- final Either<Unit, FlowyError> successOrFail;
- @override
- String toString() {
- return 'DocumentLoadingState.finish(successOrFail: $successOrFail)';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) ||
- (other is _Finish &&
- (identical(other.successOrFail, successOrFail) ||
- const DeepCollectionEquality()
- .equals(other.successOrFail, successOrFail)));
- }
- @override
- int get hashCode =>
- runtimeType.hashCode ^ const DeepCollectionEquality().hash(successOrFail);
- @JsonKey(ignore: true)
- @override
- _$FinishCopyWith<_Finish> get copyWith =>
- __$FinishCopyWithImpl<_Finish>(this, _$identity);
- @override
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() loading,
- required TResult Function(Either<Unit, FlowyError> successOrFail) finish,
- }) {
- return finish(successOrFail);
- }
- @override
- @optionalTypeArgs
- TResult? whenOrNull<TResult extends Object?>({
- TResult Function()? loading,
- TResult Function(Either<Unit, FlowyError> successOrFail)? finish,
- }) {
- return finish?.call(successOrFail);
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? loading,
- TResult Function(Either<Unit, FlowyError> successOrFail)? finish,
- required TResult orElse(),
- }) {
- if (finish != null) {
- return finish(successOrFail);
- }
- return orElse();
- }
- @override
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(_Loading value) loading,
- required TResult Function(_Finish value) finish,
- }) {
- return finish(this);
- }
- @override
- @optionalTypeArgs
- TResult? mapOrNull<TResult extends Object?>({
- TResult Function(_Loading value)? loading,
- TResult Function(_Finish value)? finish,
- }) {
- return finish?.call(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(_Loading value)? loading,
- TResult Function(_Finish value)? finish,
- required TResult orElse(),
- }) {
- if (finish != null) {
- return finish(this);
- }
- return orElse();
- }
- }
- abstract class _Finish implements DocumentLoadingState {
- const factory _Finish(Either<Unit, FlowyError> successOrFail) = _$_Finish;
- Either<Unit, FlowyError> get successOrFail =>
- throw _privateConstructorUsedError;
- @JsonKey(ignore: true)
- _$FinishCopyWith<_Finish> get copyWith => throw _privateConstructorUsedError;
- }
|