123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542 |
- // 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_watch_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 _$DocWatchEventTearOff {
- const _$DocWatchEventTearOff();
- Started started() {
- return const Started();
- }
- }
- /// @nodoc
- const $DocWatchEvent = _$DocWatchEventTearOff();
- /// @nodoc
- mixin _$DocWatchEvent {
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() started,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? started,
- required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(Started value) started,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(Started value)? started,
- required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $DocWatchEventCopyWith<$Res> {
- factory $DocWatchEventCopyWith(
- DocWatchEvent value, $Res Function(DocWatchEvent) then) =
- _$DocWatchEventCopyWithImpl<$Res>;
- }
- /// @nodoc
- class _$DocWatchEventCopyWithImpl<$Res>
- implements $DocWatchEventCopyWith<$Res> {
- _$DocWatchEventCopyWithImpl(this._value, this._then);
- final DocWatchEvent _value;
- // ignore: unused_field
- final $Res Function(DocWatchEvent) _then;
- }
- /// @nodoc
- abstract class $StartedCopyWith<$Res> {
- factory $StartedCopyWith(Started value, $Res Function(Started) then) =
- _$StartedCopyWithImpl<$Res>;
- }
- /// @nodoc
- class _$StartedCopyWithImpl<$Res> extends _$DocWatchEventCopyWithImpl<$Res>
- implements $StartedCopyWith<$Res> {
- _$StartedCopyWithImpl(Started _value, $Res Function(Started) _then)
- : super(_value, (v) => _then(v as Started));
- @override
- Started get _value => super._value as Started;
- }
- /// @nodoc
- class _$Started implements Started {
- const _$Started();
- @override
- String toString() {
- return 'DocWatchEvent.started()';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) || (other is Started);
- }
- @override
- int get hashCode => runtimeType.hashCode;
- @override
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() started,
- }) {
- return started();
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? started,
- required TResult orElse(),
- }) {
- if (started != null) {
- return started();
- }
- return orElse();
- }
- @override
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(Started value) started,
- }) {
- return started(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(Started value)? started,
- required TResult orElse(),
- }) {
- if (started != null) {
- return started(this);
- }
- return orElse();
- }
- }
- abstract class Started implements DocWatchEvent {
- const factory Started() = _$Started;
- }
- /// @nodoc
- class _$DocWatchStateTearOff {
- const _$DocWatchStateTearOff();
- Loading loading() {
- return const Loading();
- }
- LoadDoc loadDoc(Doc doc) {
- return LoadDoc(
- doc,
- );
- }
- LoadFail loadFail(DocError error) {
- return LoadFail(
- error,
- );
- }
- }
- /// @nodoc
- const $DocWatchState = _$DocWatchStateTearOff();
- /// @nodoc
- mixin _$DocWatchState {
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() loading,
- required TResult Function(Doc doc) loadDoc,
- required TResult Function(DocError error) loadFail,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? loading,
- TResult Function(Doc doc)? loadDoc,
- TResult Function(DocError error)? loadFail,
- required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(Loading value) loading,
- required TResult Function(LoadDoc value) loadDoc,
- required TResult Function(LoadFail value) loadFail,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(Loading value)? loading,
- TResult Function(LoadDoc value)? loadDoc,
- TResult Function(LoadFail value)? loadFail,
- required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $DocWatchStateCopyWith<$Res> {
- factory $DocWatchStateCopyWith(
- DocWatchState value, $Res Function(DocWatchState) then) =
- _$DocWatchStateCopyWithImpl<$Res>;
- }
- /// @nodoc
- class _$DocWatchStateCopyWithImpl<$Res>
- implements $DocWatchStateCopyWith<$Res> {
- _$DocWatchStateCopyWithImpl(this._value, this._then);
- final DocWatchState _value;
- // ignore: unused_field
- final $Res Function(DocWatchState) _then;
- }
- /// @nodoc
- abstract class $LoadingCopyWith<$Res> {
- factory $LoadingCopyWith(Loading value, $Res Function(Loading) then) =
- _$LoadingCopyWithImpl<$Res>;
- }
- /// @nodoc
- class _$LoadingCopyWithImpl<$Res> extends _$DocWatchStateCopyWithImpl<$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 'DocWatchState.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(Doc doc) loadDoc,
- required TResult Function(DocError error) loadFail,
- }) {
- return loading();
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? loading,
- TResult Function(Doc doc)? loadDoc,
- TResult Function(DocError error)? loadFail,
- 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(LoadDoc value) loadDoc,
- required TResult Function(LoadFail value) loadFail,
- }) {
- return loading(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(Loading value)? loading,
- TResult Function(LoadDoc value)? loadDoc,
- TResult Function(LoadFail value)? loadFail,
- required TResult orElse(),
- }) {
- if (loading != null) {
- return loading(this);
- }
- return orElse();
- }
- }
- abstract class Loading implements DocWatchState {
- const factory Loading() = _$Loading;
- }
- /// @nodoc
- abstract class $LoadDocCopyWith<$Res> {
- factory $LoadDocCopyWith(LoadDoc value, $Res Function(LoadDoc) then) =
- _$LoadDocCopyWithImpl<$Res>;
- $Res call({Doc doc});
- }
- /// @nodoc
- class _$LoadDocCopyWithImpl<$Res> extends _$DocWatchStateCopyWithImpl<$Res>
- implements $LoadDocCopyWith<$Res> {
- _$LoadDocCopyWithImpl(LoadDoc _value, $Res Function(LoadDoc) _then)
- : super(_value, (v) => _then(v as LoadDoc));
- @override
- LoadDoc get _value => super._value as LoadDoc;
- @override
- $Res call({
- Object? doc = freezed,
- }) {
- return _then(LoadDoc(
- doc == freezed
- ? _value.doc
- : doc // ignore: cast_nullable_to_non_nullable
- as Doc,
- ));
- }
- }
- /// @nodoc
- class _$LoadDoc implements LoadDoc {
- const _$LoadDoc(this.doc);
- @override
- final Doc doc;
- @override
- String toString() {
- return 'DocWatchState.loadDoc(doc: $doc)';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) ||
- (other is LoadDoc &&
- (identical(other.doc, doc) ||
- const DeepCollectionEquality().equals(other.doc, doc)));
- }
- @override
- int get hashCode =>
- runtimeType.hashCode ^ const DeepCollectionEquality().hash(doc);
- @JsonKey(ignore: true)
- @override
- $LoadDocCopyWith<LoadDoc> get copyWith =>
- _$LoadDocCopyWithImpl<LoadDoc>(this, _$identity);
- @override
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() loading,
- required TResult Function(Doc doc) loadDoc,
- required TResult Function(DocError error) loadFail,
- }) {
- return loadDoc(doc);
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? loading,
- TResult Function(Doc doc)? loadDoc,
- TResult Function(DocError error)? loadFail,
- required TResult orElse(),
- }) {
- if (loadDoc != null) {
- return loadDoc(doc);
- }
- return orElse();
- }
- @override
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(Loading value) loading,
- required TResult Function(LoadDoc value) loadDoc,
- required TResult Function(LoadFail value) loadFail,
- }) {
- return loadDoc(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(Loading value)? loading,
- TResult Function(LoadDoc value)? loadDoc,
- TResult Function(LoadFail value)? loadFail,
- required TResult orElse(),
- }) {
- if (loadDoc != null) {
- return loadDoc(this);
- }
- return orElse();
- }
- }
- abstract class LoadDoc implements DocWatchState {
- const factory LoadDoc(Doc doc) = _$LoadDoc;
- Doc get doc => throw _privateConstructorUsedError;
- @JsonKey(ignore: true)
- $LoadDocCopyWith<LoadDoc> get copyWith => throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $LoadFailCopyWith<$Res> {
- factory $LoadFailCopyWith(LoadFail value, $Res Function(LoadFail) then) =
- _$LoadFailCopyWithImpl<$Res>;
- $Res call({DocError error});
- }
- /// @nodoc
- class _$LoadFailCopyWithImpl<$Res> extends _$DocWatchStateCopyWithImpl<$Res>
- implements $LoadFailCopyWith<$Res> {
- _$LoadFailCopyWithImpl(LoadFail _value, $Res Function(LoadFail) _then)
- : super(_value, (v) => _then(v as LoadFail));
- @override
- LoadFail get _value => super._value as LoadFail;
- @override
- $Res call({
- Object? error = freezed,
- }) {
- return _then(LoadFail(
- error == freezed
- ? _value.error
- : error // ignore: cast_nullable_to_non_nullable
- as DocError,
- ));
- }
- }
- /// @nodoc
- class _$LoadFail implements LoadFail {
- const _$LoadFail(this.error);
- @override
- final DocError error;
- @override
- String toString() {
- return 'DocWatchState.loadFail(error: $error)';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) ||
- (other is LoadFail &&
- (identical(other.error, error) ||
- const DeepCollectionEquality().equals(other.error, error)));
- }
- @override
- int get hashCode =>
- runtimeType.hashCode ^ const DeepCollectionEquality().hash(error);
- @JsonKey(ignore: true)
- @override
- $LoadFailCopyWith<LoadFail> get copyWith =>
- _$LoadFailCopyWithImpl<LoadFail>(this, _$identity);
- @override
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function() loading,
- required TResult Function(Doc doc) loadDoc,
- required TResult Function(DocError error) loadFail,
- }) {
- return loadFail(error);
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function()? loading,
- TResult Function(Doc doc)? loadDoc,
- TResult Function(DocError error)? loadFail,
- required TResult orElse(),
- }) {
- if (loadFail != null) {
- return loadFail(error);
- }
- return orElse();
- }
- @override
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(Loading value) loading,
- required TResult Function(LoadDoc value) loadDoc,
- required TResult Function(LoadFail value) loadFail,
- }) {
- return loadFail(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(Loading value)? loading,
- TResult Function(LoadDoc value)? loadDoc,
- TResult Function(LoadFail value)? loadFail,
- required TResult orElse(),
- }) {
- if (loadFail != null) {
- return loadFail(this);
- }
- return orElse();
- }
- }
- abstract class LoadFail implements DocWatchState {
- const factory LoadFail(DocError error) = _$LoadFail;
- DocError get error => throw _privateConstructorUsedError;
- @JsonKey(ignore: true)
- $LoadFailCopyWith<LoadFail> get copyWith =>
- throw _privateConstructorUsedError;
- }
|