123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765 |
- // 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 _$DocEventTearOff {
- const _$DocEventTearOff();
- Initial initial() {
- return const Initial();
- }
- Deleted deleted() {
- return const Deleted();
- }
- Restore restore() {
- return const Restore();
- }
- }
- /// @nodoc
- const $DocEvent = _$DocEventTearOff();
- /// @nodoc
- mixin _$DocEvent {
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() initial,
- required TResult Function() deleted,
- required TResult Function() restore,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? initial,
- TResult Function()? deleted,
- TResult Function()? restore,
- 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,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(Initial value)? initial,
- TResult Function(Deleted value)? deleted,
- TResult Function(Restore value)? restore,
- required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $DocEventCopyWith<$Res> {
- factory $DocEventCopyWith(DocEvent value, $Res Function(DocEvent) then) =
- _$DocEventCopyWithImpl<$Res>;
- }
- /// @nodoc
- class _$DocEventCopyWithImpl<$Res> implements $DocEventCopyWith<$Res> {
- _$DocEventCopyWithImpl(this._value, this._then);
- final DocEvent _value;
- // ignore: unused_field
- final $Res Function(DocEvent) _then;
- }
- /// @nodoc
- abstract class $InitialCopyWith<$Res> {
- factory $InitialCopyWith(Initial value, $Res Function(Initial) then) =
- _$InitialCopyWithImpl<$Res>;
- }
- /// @nodoc
- class _$InitialCopyWithImpl<$Res> extends _$DocEventCopyWithImpl<$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 'DocEvent.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,
- }) {
- return initial();
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? initial,
- TResult Function()? deleted,
- TResult Function()? restore,
- 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,
- }) {
- return initial(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(Initial value)? initial,
- TResult Function(Deleted value)? deleted,
- TResult Function(Restore value)? restore,
- required TResult orElse(),
- }) {
- if (initial != null) {
- return initial(this);
- }
- return orElse();
- }
- }
- abstract class Initial implements DocEvent {
- const factory Initial() = _$Initial;
- }
- /// @nodoc
- abstract class $DeletedCopyWith<$Res> {
- factory $DeletedCopyWith(Deleted value, $Res Function(Deleted) then) =
- _$DeletedCopyWithImpl<$Res>;
- }
- /// @nodoc
- class _$DeletedCopyWithImpl<$Res> extends _$DocEventCopyWithImpl<$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 'DocEvent.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,
- }) {
- return deleted();
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? initial,
- TResult Function()? deleted,
- TResult Function()? restore,
- 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,
- }) {
- return deleted(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(Initial value)? initial,
- TResult Function(Deleted value)? deleted,
- TResult Function(Restore value)? restore,
- required TResult orElse(),
- }) {
- if (deleted != null) {
- return deleted(this);
- }
- return orElse();
- }
- }
- abstract class Deleted implements DocEvent {
- const factory Deleted() = _$Deleted;
- }
- /// @nodoc
- abstract class $RestoreCopyWith<$Res> {
- factory $RestoreCopyWith(Restore value, $Res Function(Restore) then) =
- _$RestoreCopyWithImpl<$Res>;
- }
- /// @nodoc
- class _$RestoreCopyWithImpl<$Res> extends _$DocEventCopyWithImpl<$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 'DocEvent.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,
- }) {
- return restore();
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? initial,
- TResult Function()? deleted,
- TResult Function()? restore,
- 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,
- }) {
- return restore(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(Initial value)? initial,
- TResult Function(Deleted value)? deleted,
- TResult Function(Restore value)? restore,
- required TResult orElse(),
- }) {
- if (restore != null) {
- return restore(this);
- }
- return orElse();
- }
- }
- abstract class Restore implements DocEvent {
- const factory Restore() = _$Restore;
- }
- /// @nodoc
- class _$DocStateTearOff {
- const _$DocStateTearOff();
- _DocState call({required DocLoadState loadState, required bool isDeleted}) {
- return _DocState(
- loadState: loadState,
- isDeleted: isDeleted,
- );
- }
- }
- /// @nodoc
- const $DocState = _$DocStateTearOff();
- /// @nodoc
- mixin _$DocState {
- DocLoadState get loadState => throw _privateConstructorUsedError;
- bool get isDeleted => throw _privateConstructorUsedError;
- @JsonKey(ignore: true)
- $DocStateCopyWith<DocState> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $DocStateCopyWith<$Res> {
- factory $DocStateCopyWith(DocState value, $Res Function(DocState) then) =
- _$DocStateCopyWithImpl<$Res>;
- $Res call({DocLoadState loadState, bool isDeleted});
- $DocLoadStateCopyWith<$Res> get loadState;
- }
- /// @nodoc
- class _$DocStateCopyWithImpl<$Res> implements $DocStateCopyWith<$Res> {
- _$DocStateCopyWithImpl(this._value, this._then);
- final DocState _value;
- // ignore: unused_field
- final $Res Function(DocState) _then;
- @override
- $Res call({
- Object? loadState = freezed,
- Object? isDeleted = freezed,
- }) {
- return _then(_value.copyWith(
- loadState: loadState == freezed
- ? _value.loadState
- : loadState // ignore: cast_nullable_to_non_nullable
- as DocLoadState,
- isDeleted: isDeleted == freezed
- ? _value.isDeleted
- : isDeleted // ignore: cast_nullable_to_non_nullable
- as bool,
- ));
- }
- @override
- $DocLoadStateCopyWith<$Res> get loadState {
- return $DocLoadStateCopyWith<$Res>(_value.loadState, (value) {
- return _then(_value.copyWith(loadState: value));
- });
- }
- }
- /// @nodoc
- abstract class _$DocStateCopyWith<$Res> implements $DocStateCopyWith<$Res> {
- factory _$DocStateCopyWith(_DocState value, $Res Function(_DocState) then) =
- __$DocStateCopyWithImpl<$Res>;
- @override
- $Res call({DocLoadState loadState, bool isDeleted});
- @override
- $DocLoadStateCopyWith<$Res> get loadState;
- }
- /// @nodoc
- class __$DocStateCopyWithImpl<$Res> extends _$DocStateCopyWithImpl<$Res>
- implements _$DocStateCopyWith<$Res> {
- __$DocStateCopyWithImpl(_DocState _value, $Res Function(_DocState) _then)
- : super(_value, (v) => _then(v as _DocState));
- @override
- _DocState get _value => super._value as _DocState;
- @override
- $Res call({
- Object? loadState = freezed,
- Object? isDeleted = freezed,
- }) {
- return _then(_DocState(
- loadState: loadState == freezed
- ? _value.loadState
- : loadState // ignore: cast_nullable_to_non_nullable
- as DocLoadState,
- isDeleted: isDeleted == freezed
- ? _value.isDeleted
- : isDeleted // ignore: cast_nullable_to_non_nullable
- as bool,
- ));
- }
- }
- /// @nodoc
- class _$_DocState implements _DocState {
- const _$_DocState({required this.loadState, required this.isDeleted});
- @override
- final DocLoadState loadState;
- @override
- final bool isDeleted;
- @override
- String toString() {
- return 'DocState(loadState: $loadState, isDeleted: $isDeleted)';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) ||
- (other is _DocState &&
- (identical(other.loadState, loadState) ||
- const DeepCollectionEquality()
- .equals(other.loadState, loadState)) &&
- (identical(other.isDeleted, isDeleted) ||
- const DeepCollectionEquality()
- .equals(other.isDeleted, isDeleted)));
- }
- @override
- int get hashCode =>
- runtimeType.hashCode ^
- const DeepCollectionEquality().hash(loadState) ^
- const DeepCollectionEquality().hash(isDeleted);
- @JsonKey(ignore: true)
- @override
- _$DocStateCopyWith<_DocState> get copyWith =>
- __$DocStateCopyWithImpl<_DocState>(this, _$identity);
- }
- abstract class _DocState implements DocState {
- const factory _DocState(
- {required DocLoadState loadState, required bool isDeleted}) = _$_DocState;
- @override
- DocLoadState get loadState => throw _privateConstructorUsedError;
- @override
- bool get isDeleted => throw _privateConstructorUsedError;
- @override
- @JsonKey(ignore: true)
- _$DocStateCopyWith<_DocState> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- class _$DocLoadStateTearOff {
- const _$DocLoadStateTearOff();
- _Loading loading() {
- return const _Loading();
- }
- _Finish finish(Either<Unit, WorkspaceError> successOrFail) {
- return _Finish(
- successOrFail,
- );
- }
- }
- /// @nodoc
- const $DocLoadState = _$DocLoadStateTearOff();
- /// @nodoc
- mixin _$DocLoadState {
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() loading,
- required TResult Function(Either<Unit, WorkspaceError> successOrFail)
- finish,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? loading,
- TResult Function(Either<Unit, WorkspaceError> 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 maybeMap<TResult extends Object?>({
- TResult Function(_Loading value)? loading,
- TResult Function(_Finish value)? finish,
- required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $DocLoadStateCopyWith<$Res> {
- factory $DocLoadStateCopyWith(
- DocLoadState value, $Res Function(DocLoadState) then) =
- _$DocLoadStateCopyWithImpl<$Res>;
- }
- /// @nodoc
- class _$DocLoadStateCopyWithImpl<$Res> implements $DocLoadStateCopyWith<$Res> {
- _$DocLoadStateCopyWithImpl(this._value, this._then);
- final DocLoadState _value;
- // ignore: unused_field
- final $Res Function(DocLoadState) _then;
- }
- /// @nodoc
- abstract class _$LoadingCopyWith<$Res> {
- factory _$LoadingCopyWith(_Loading value, $Res Function(_Loading) then) =
- __$LoadingCopyWithImpl<$Res>;
- }
- /// @nodoc
- class __$LoadingCopyWithImpl<$Res> extends _$DocLoadStateCopyWithImpl<$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 'DocLoadState.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, WorkspaceError> successOrFail)
- finish,
- }) {
- return loading();
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? loading,
- TResult Function(Either<Unit, WorkspaceError> 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 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 DocLoadState {
- const factory _Loading() = _$_Loading;
- }
- /// @nodoc
- abstract class _$FinishCopyWith<$Res> {
- factory _$FinishCopyWith(_Finish value, $Res Function(_Finish) then) =
- __$FinishCopyWithImpl<$Res>;
- $Res call({Either<Unit, WorkspaceError> successOrFail});
- }
- /// @nodoc
- class __$FinishCopyWithImpl<$Res> extends _$DocLoadStateCopyWithImpl<$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, WorkspaceError>,
- ));
- }
- }
- /// @nodoc
- class _$_Finish implements _Finish {
- const _$_Finish(this.successOrFail);
- @override
- final Either<Unit, WorkspaceError> successOrFail;
- @override
- String toString() {
- return 'DocLoadState.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, WorkspaceError> successOrFail)
- finish,
- }) {
- return finish(successOrFail);
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? loading,
- TResult Function(Either<Unit, WorkspaceError> 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 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 DocLoadState {
- const factory _Finish(Either<Unit, WorkspaceError> successOrFail) = _$_Finish;
- Either<Unit, WorkspaceError> get successOrFail =>
- throw _privateConstructorUsedError;
- @JsonKey(ignore: true)
- _$FinishCopyWith<_Finish> get copyWith => throw _privateConstructorUsedError;
- }
|