| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484 | // 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 'app_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 _$AppEventTearOff {  const _$AppEventTearOff();  Initial initial() {    return const Initial();  }  CreateView createView(String name, String desc, ViewType viewType) {    return CreateView(      name,      desc,      viewType,    );  }}/// @nodocconst $AppEvent = _$AppEventTearOff();/// @nodocmixin _$AppEvent {  @optionalTypeArgs  TResult when<TResult extends Object?>({    required TResult Function() initial,    required TResult Function(String name, String desc, ViewType viewType)        createView,  }) =>      throw _privateConstructorUsedError;  @optionalTypeArgs  TResult maybeWhen<TResult extends Object?>({    TResult Function()? initial,    TResult Function(String name, String desc, ViewType viewType)? createView,    required TResult orElse(),  }) =>      throw _privateConstructorUsedError;  @optionalTypeArgs  TResult map<TResult extends Object?>({    required TResult Function(Initial value) initial,    required TResult Function(CreateView value) createView,  }) =>      throw _privateConstructorUsedError;  @optionalTypeArgs  TResult maybeMap<TResult extends Object?>({    TResult Function(Initial value)? initial,    TResult Function(CreateView value)? createView,    required TResult orElse(),  }) =>      throw _privateConstructorUsedError;}/// @nodocabstract class $AppEventCopyWith<$Res> {  factory $AppEventCopyWith(AppEvent value, $Res Function(AppEvent) then) =      _$AppEventCopyWithImpl<$Res>;}/// @nodocclass _$AppEventCopyWithImpl<$Res> implements $AppEventCopyWith<$Res> {  _$AppEventCopyWithImpl(this._value, this._then);  final AppEvent _value;  // ignore: unused_field  final $Res Function(AppEvent) _then;}/// @nodocabstract class $InitialCopyWith<$Res> {  factory $InitialCopyWith(Initial value, $Res Function(Initial) then) =      _$InitialCopyWithImpl<$Res>;}/// @nodocclass _$InitialCopyWithImpl<$Res> extends _$AppEventCopyWithImpl<$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 'AppEvent.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(String name, String desc, ViewType viewType)        createView,  }) {    return initial();  }  @override  @optionalTypeArgs  TResult maybeWhen<TResult extends Object?>({    TResult Function()? initial,    TResult Function(String name, String desc, ViewType viewType)? createView,    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(CreateView value) createView,  }) {    return initial(this);  }  @override  @optionalTypeArgs  TResult maybeMap<TResult extends Object?>({    TResult Function(Initial value)? initial,    TResult Function(CreateView value)? createView,    required TResult orElse(),  }) {    if (initial != null) {      return initial(this);    }    return orElse();  }}abstract class Initial implements AppEvent {  const factory Initial() = _$Initial;}/// @nodocabstract class $CreateViewCopyWith<$Res> {  factory $CreateViewCopyWith(          CreateView value, $Res Function(CreateView) then) =      _$CreateViewCopyWithImpl<$Res>;  $Res call({String name, String desc, ViewType viewType});}/// @nodocclass _$CreateViewCopyWithImpl<$Res> extends _$AppEventCopyWithImpl<$Res>    implements $CreateViewCopyWith<$Res> {  _$CreateViewCopyWithImpl(CreateView _value, $Res Function(CreateView) _then)      : super(_value, (v) => _then(v as CreateView));  @override  CreateView get _value => super._value as CreateView;  @override  $Res call({    Object? name = freezed,    Object? desc = freezed,    Object? viewType = freezed,  }) {    return _then(CreateView(      name == freezed          ? _value.name          : name // ignore: cast_nullable_to_non_nullable              as String,      desc == freezed          ? _value.desc          : desc // ignore: cast_nullable_to_non_nullable              as String,      viewType == freezed          ? _value.viewType          : viewType // ignore: cast_nullable_to_non_nullable              as ViewType,    ));  }}/// @nodocclass _$CreateView implements CreateView {  const _$CreateView(this.name, this.desc, this.viewType);  @override  final String name;  @override  final String desc;  @override  final ViewType viewType;  @override  String toString() {    return 'AppEvent.createView(name: $name, desc: $desc, viewType: $viewType)';  }  @override  bool operator ==(dynamic other) {    return identical(this, other) ||        (other is CreateView &&            (identical(other.name, name) ||                const DeepCollectionEquality().equals(other.name, name)) &&            (identical(other.desc, desc) ||                const DeepCollectionEquality().equals(other.desc, desc)) &&            (identical(other.viewType, viewType) ||                const DeepCollectionEquality()                    .equals(other.viewType, viewType)));  }  @override  int get hashCode =>      runtimeType.hashCode ^      const DeepCollectionEquality().hash(name) ^      const DeepCollectionEquality().hash(desc) ^      const DeepCollectionEquality().hash(viewType);  @JsonKey(ignore: true)  @override  $CreateViewCopyWith<CreateView> get copyWith =>      _$CreateViewCopyWithImpl<CreateView>(this, _$identity);  @override  @optionalTypeArgs  TResult when<TResult extends Object?>({    required TResult Function() initial,    required TResult Function(String name, String desc, ViewType viewType)        createView,  }) {    return createView(name, desc, viewType);  }  @override  @optionalTypeArgs  TResult maybeWhen<TResult extends Object?>({    TResult Function()? initial,    TResult Function(String name, String desc, ViewType viewType)? createView,    required TResult orElse(),  }) {    if (createView != null) {      return createView(name, desc, viewType);    }    return orElse();  }  @override  @optionalTypeArgs  TResult map<TResult extends Object?>({    required TResult Function(Initial value) initial,    required TResult Function(CreateView value) createView,  }) {    return createView(this);  }  @override  @optionalTypeArgs  TResult maybeMap<TResult extends Object?>({    TResult Function(Initial value)? initial,    TResult Function(CreateView value)? createView,    required TResult orElse(),  }) {    if (createView != null) {      return createView(this);    }    return orElse();  }}abstract class CreateView implements AppEvent {  const factory CreateView(String name, String desc, ViewType viewType) =      _$CreateView;  String get name => throw _privateConstructorUsedError;  String get desc => throw _privateConstructorUsedError;  ViewType get viewType => throw _privateConstructorUsedError;  @JsonKey(ignore: true)  $CreateViewCopyWith<CreateView> get copyWith =>      throw _privateConstructorUsedError;}/// @nodocclass _$AppStateTearOff {  const _$AppStateTearOff();  _AppState call(      {required bool isLoading,      required List<View>? views,      required Either<Unit, WorkspaceError> successOrFailure}) {    return _AppState(      isLoading: isLoading,      views: views,      successOrFailure: successOrFailure,    );  }}/// @nodocconst $AppState = _$AppStateTearOff();/// @nodocmixin _$AppState {  bool get isLoading => throw _privateConstructorUsedError;  List<View>? get views => throw _privateConstructorUsedError;  Either<Unit, WorkspaceError> get successOrFailure =>      throw _privateConstructorUsedError;  @JsonKey(ignore: true)  $AppStateCopyWith<AppState> get copyWith =>      throw _privateConstructorUsedError;}/// @nodocabstract class $AppStateCopyWith<$Res> {  factory $AppStateCopyWith(AppState value, $Res Function(AppState) then) =      _$AppStateCopyWithImpl<$Res>;  $Res call(      {bool isLoading,      List<View>? views,      Either<Unit, WorkspaceError> successOrFailure});}/// @nodocclass _$AppStateCopyWithImpl<$Res> implements $AppStateCopyWith<$Res> {  _$AppStateCopyWithImpl(this._value, this._then);  final AppState _value;  // ignore: unused_field  final $Res Function(AppState) _then;  @override  $Res call({    Object? isLoading = freezed,    Object? views = freezed,    Object? successOrFailure = freezed,  }) {    return _then(_value.copyWith(      isLoading: isLoading == freezed          ? _value.isLoading          : isLoading // ignore: cast_nullable_to_non_nullable              as bool,      views: views == freezed          ? _value.views          : views // ignore: cast_nullable_to_non_nullable              as List<View>?,      successOrFailure: successOrFailure == freezed          ? _value.successOrFailure          : successOrFailure // ignore: cast_nullable_to_non_nullable              as Either<Unit, WorkspaceError>,    ));  }}/// @nodocabstract class _$AppStateCopyWith<$Res> implements $AppStateCopyWith<$Res> {  factory _$AppStateCopyWith(_AppState value, $Res Function(_AppState) then) =      __$AppStateCopyWithImpl<$Res>;  @override  $Res call(      {bool isLoading,      List<View>? views,      Either<Unit, WorkspaceError> successOrFailure});}/// @nodocclass __$AppStateCopyWithImpl<$Res> extends _$AppStateCopyWithImpl<$Res>    implements _$AppStateCopyWith<$Res> {  __$AppStateCopyWithImpl(_AppState _value, $Res Function(_AppState) _then)      : super(_value, (v) => _then(v as _AppState));  @override  _AppState get _value => super._value as _AppState;  @override  $Res call({    Object? isLoading = freezed,    Object? views = freezed,    Object? successOrFailure = freezed,  }) {    return _then(_AppState(      isLoading: isLoading == freezed          ? _value.isLoading          : isLoading // ignore: cast_nullable_to_non_nullable              as bool,      views: views == freezed          ? _value.views          : views // ignore: cast_nullable_to_non_nullable              as List<View>?,      successOrFailure: successOrFailure == freezed          ? _value.successOrFailure          : successOrFailure // ignore: cast_nullable_to_non_nullable              as Either<Unit, WorkspaceError>,    ));  }}/// @nodocclass _$_AppState implements _AppState {  const _$_AppState(      {required this.isLoading,      required this.views,      required this.successOrFailure});  @override  final bool isLoading;  @override  final List<View>? views;  @override  final Either<Unit, WorkspaceError> successOrFailure;  @override  String toString() {    return 'AppState(isLoading: $isLoading, views: $views, successOrFailure: $successOrFailure)';  }  @override  bool operator ==(dynamic other) {    return identical(this, other) ||        (other is _AppState &&            (identical(other.isLoading, isLoading) ||                const DeepCollectionEquality()                    .equals(other.isLoading, isLoading)) &&            (identical(other.views, views) ||                const DeepCollectionEquality().equals(other.views, views)) &&            (identical(other.successOrFailure, successOrFailure) ||                const DeepCollectionEquality()                    .equals(other.successOrFailure, successOrFailure)));  }  @override  int get hashCode =>      runtimeType.hashCode ^      const DeepCollectionEquality().hash(isLoading) ^      const DeepCollectionEquality().hash(views) ^      const DeepCollectionEquality().hash(successOrFailure);  @JsonKey(ignore: true)  @override  _$AppStateCopyWith<_AppState> get copyWith =>      __$AppStateCopyWithImpl<_AppState>(this, _$identity);}abstract class _AppState implements AppState {  const factory _AppState(      {required bool isLoading,      required List<View>? views,      required Either<Unit, WorkspaceError> successOrFailure}) = _$_AppState;  @override  bool get isLoading => throw _privateConstructorUsedError;  @override  List<View>? get views => throw _privateConstructorUsedError;  @override  Either<Unit, WorkspaceError> get successOrFailure =>      throw _privateConstructorUsedError;  @override  @JsonKey(ignore: true)  _$AppStateCopyWith<_AppState> get copyWith =>      throw _privateConstructorUsedError;}
 |