| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327 | // 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_targetpart of 'view_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');/// @nodocclass _$ViewEventTearOff {  const _$ViewEventTearOff();  Initial initial() {    return const Initial();  }}/// @nodocconst $ViewEvent = _$ViewEventTearOff();/// @nodocmixin _$ViewEvent {  @optionalTypeArgs  TResult when<TResult extends Object?>({    required TResult Function() initial,  }) =>      throw _privateConstructorUsedError;  @optionalTypeArgs  TResult maybeWhen<TResult extends Object?>({    TResult Function()? initial,    required TResult orElse(),  }) =>      throw _privateConstructorUsedError;  @optionalTypeArgs  TResult map<TResult extends Object?>({    required TResult Function(Initial value) initial,  }) =>      throw _privateConstructorUsedError;  @optionalTypeArgs  TResult maybeMap<TResult extends Object?>({    TResult Function(Initial value)? initial,    required TResult orElse(),  }) =>      throw _privateConstructorUsedError;}/// @nodocabstract class $ViewEventCopyWith<$Res> {  factory $ViewEventCopyWith(ViewEvent value, $Res Function(ViewEvent) then) =      _$ViewEventCopyWithImpl<$Res>;}/// @nodocclass _$ViewEventCopyWithImpl<$Res> implements $ViewEventCopyWith<$Res> {  _$ViewEventCopyWithImpl(this._value, this._then);  final ViewEvent _value;  // ignore: unused_field  final $Res Function(ViewEvent) _then;}/// @nodocabstract class $InitialCopyWith<$Res> {  factory $InitialCopyWith(Initial value, $Res Function(Initial) then) =      _$InitialCopyWithImpl<$Res>;}/// @nodocclass _$InitialCopyWithImpl<$Res> extends _$ViewEventCopyWithImpl<$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;}/// @nodocclass _$Initial implements Initial {  const _$Initial();  @override  String toString() {    return 'ViewEvent.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,  }) {    return initial();  }  @override  @optionalTypeArgs  TResult maybeWhen<TResult extends Object?>({    TResult Function()? initial,    required TResult orElse(),  }) {    if (initial != null) {      return initial();    }    return orElse();  }  @override  @optionalTypeArgs  TResult map<TResult extends Object?>({    required TResult Function(Initial value) initial,  }) {    return initial(this);  }  @override  @optionalTypeArgs  TResult maybeMap<TResult extends Object?>({    TResult Function(Initial value)? initial,    required TResult orElse(),  }) {    if (initial != null) {      return initial(this);    }    return orElse();  }}abstract class Initial implements ViewEvent {  const factory Initial() = _$Initial;}/// @nodocclass _$ViewStateTearOff {  const _$ViewStateTearOff();  _ViewState call(      {required bool isLoading,      required Option<View> view,      required Either<Unit, WorkspaceError> successOrFailure}) {    return _ViewState(      isLoading: isLoading,      view: view,      successOrFailure: successOrFailure,    );  }}/// @nodocconst $ViewState = _$ViewStateTearOff();/// @nodocmixin _$ViewState {  bool get isLoading => throw _privateConstructorUsedError;  Option<View> get view => throw _privateConstructorUsedError;  Either<Unit, WorkspaceError> get successOrFailure =>      throw _privateConstructorUsedError;  @JsonKey(ignore: true)  $ViewStateCopyWith<ViewState> get copyWith =>      throw _privateConstructorUsedError;}/// @nodocabstract class $ViewStateCopyWith<$Res> {  factory $ViewStateCopyWith(ViewState value, $Res Function(ViewState) then) =      _$ViewStateCopyWithImpl<$Res>;  $Res call(      {bool isLoading,      Option<View> view,      Either<Unit, WorkspaceError> successOrFailure});}/// @nodocclass _$ViewStateCopyWithImpl<$Res> implements $ViewStateCopyWith<$Res> {  _$ViewStateCopyWithImpl(this._value, this._then);  final ViewState _value;  // ignore: unused_field  final $Res Function(ViewState) _then;  @override  $Res call({    Object? isLoading = freezed,    Object? view = freezed,    Object? successOrFailure = freezed,  }) {    return _then(_value.copyWith(      isLoading: isLoading == freezed          ? _value.isLoading          : isLoading // ignore: cast_nullable_to_non_nullable              as bool,      view: view == freezed          ? _value.view          : view // ignore: cast_nullable_to_non_nullable              as Option<View>,      successOrFailure: successOrFailure == freezed          ? _value.successOrFailure          : successOrFailure // ignore: cast_nullable_to_non_nullable              as Either<Unit, WorkspaceError>,    ));  }}/// @nodocabstract class _$ViewStateCopyWith<$Res> implements $ViewStateCopyWith<$Res> {  factory _$ViewStateCopyWith(          _ViewState value, $Res Function(_ViewState) then) =      __$ViewStateCopyWithImpl<$Res>;  @override  $Res call(      {bool isLoading,      Option<View> view,      Either<Unit, WorkspaceError> successOrFailure});}/// @nodocclass __$ViewStateCopyWithImpl<$Res> extends _$ViewStateCopyWithImpl<$Res>    implements _$ViewStateCopyWith<$Res> {  __$ViewStateCopyWithImpl(_ViewState _value, $Res Function(_ViewState) _then)      : super(_value, (v) => _then(v as _ViewState));  @override  _ViewState get _value => super._value as _ViewState;  @override  $Res call({    Object? isLoading = freezed,    Object? view = freezed,    Object? successOrFailure = freezed,  }) {    return _then(_ViewState(      isLoading: isLoading == freezed          ? _value.isLoading          : isLoading // ignore: cast_nullable_to_non_nullable              as bool,      view: view == freezed          ? _value.view          : view // ignore: cast_nullable_to_non_nullable              as Option<View>,      successOrFailure: successOrFailure == freezed          ? _value.successOrFailure          : successOrFailure // ignore: cast_nullable_to_non_nullable              as Either<Unit, WorkspaceError>,    ));  }}/// @nodocclass _$_ViewState implements _ViewState {  const _$_ViewState(      {required this.isLoading,      required this.view,      required this.successOrFailure});  @override  final bool isLoading;  @override  final Option<View> view;  @override  final Either<Unit, WorkspaceError> successOrFailure;  @override  String toString() {    return 'ViewState(isLoading: $isLoading, view: $view, successOrFailure: $successOrFailure)';  }  @override  bool operator ==(dynamic other) {    return identical(this, other) ||        (other is _ViewState &&            (identical(other.isLoading, isLoading) ||                const DeepCollectionEquality()                    .equals(other.isLoading, isLoading)) &&            (identical(other.view, view) ||                const DeepCollectionEquality().equals(other.view, view)) &&            (identical(other.successOrFailure, successOrFailure) ||                const DeepCollectionEquality()                    .equals(other.successOrFailure, successOrFailure)));  }  @override  int get hashCode =>      runtimeType.hashCode ^      const DeepCollectionEquality().hash(isLoading) ^      const DeepCollectionEquality().hash(view) ^      const DeepCollectionEquality().hash(successOrFailure);  @JsonKey(ignore: true)  @override  _$ViewStateCopyWith<_ViewState> get copyWith =>      __$ViewStateCopyWithImpl<_ViewState>(this, _$identity);}abstract class _ViewState implements ViewState {  const factory _ViewState(      {required bool isLoading,      required Option<View> view,      required Either<Unit, WorkspaceError> successOrFailure}) = _$_ViewState;  @override  bool get isLoading => throw _privateConstructorUsedError;  @override  Option<View> get view => throw _privateConstructorUsedError;  @override  Either<Unit, WorkspaceError> get successOrFailure =>      throw _privateConstructorUsedError;  @override  @JsonKey(ignore: true)  _$ViewStateCopyWith<_ViewState> get copyWith =>      throw _privateConstructorUsedError;}
 |