edit_pannel_bloc.freezed.dart 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. // GENERATED CODE - DO NOT MODIFY BY HAND
  2. // 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
  3. part of 'edit_pannel_bloc.dart';
  4. // **************************************************************************
  5. // FreezedGenerator
  6. // **************************************************************************
  7. T _$identity<T>(T value) => value;
  8. final _privateConstructorUsedError = UnsupportedError(
  9. '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');
  10. /// @nodoc
  11. class _$EditPannelEventTearOff {
  12. const _$EditPannelEventTearOff();
  13. _StartEdit startEdit(EditPannelContext context) {
  14. return _StartEdit(
  15. context,
  16. );
  17. }
  18. _EndEdit endEdit(EditPannelContext context) {
  19. return _EndEdit(
  20. context,
  21. );
  22. }
  23. }
  24. /// @nodoc
  25. const $EditPannelEvent = _$EditPannelEventTearOff();
  26. /// @nodoc
  27. mixin _$EditPannelEvent {
  28. EditPannelContext get context => throw _privateConstructorUsedError;
  29. @optionalTypeArgs
  30. TResult when<TResult extends Object?>({
  31. required TResult Function(EditPannelContext context) startEdit,
  32. required TResult Function(EditPannelContext context) endEdit,
  33. }) =>
  34. throw _privateConstructorUsedError;
  35. @optionalTypeArgs
  36. TResult maybeWhen<TResult extends Object?>({
  37. TResult Function(EditPannelContext context)? startEdit,
  38. TResult Function(EditPannelContext context)? endEdit,
  39. required TResult orElse(),
  40. }) =>
  41. throw _privateConstructorUsedError;
  42. @optionalTypeArgs
  43. TResult map<TResult extends Object?>({
  44. required TResult Function(_StartEdit value) startEdit,
  45. required TResult Function(_EndEdit value) endEdit,
  46. }) =>
  47. throw _privateConstructorUsedError;
  48. @optionalTypeArgs
  49. TResult maybeMap<TResult extends Object?>({
  50. TResult Function(_StartEdit value)? startEdit,
  51. TResult Function(_EndEdit value)? endEdit,
  52. required TResult orElse(),
  53. }) =>
  54. throw _privateConstructorUsedError;
  55. @JsonKey(ignore: true)
  56. $EditPannelEventCopyWith<EditPannelEvent> get copyWith =>
  57. throw _privateConstructorUsedError;
  58. }
  59. /// @nodoc
  60. abstract class $EditPannelEventCopyWith<$Res> {
  61. factory $EditPannelEventCopyWith(
  62. EditPannelEvent value, $Res Function(EditPannelEvent) then) =
  63. _$EditPannelEventCopyWithImpl<$Res>;
  64. $Res call({EditPannelContext context});
  65. }
  66. /// @nodoc
  67. class _$EditPannelEventCopyWithImpl<$Res>
  68. implements $EditPannelEventCopyWith<$Res> {
  69. _$EditPannelEventCopyWithImpl(this._value, this._then);
  70. final EditPannelEvent _value;
  71. // ignore: unused_field
  72. final $Res Function(EditPannelEvent) _then;
  73. @override
  74. $Res call({
  75. Object? context = freezed,
  76. }) {
  77. return _then(_value.copyWith(
  78. context: context == freezed
  79. ? _value.context
  80. : context // ignore: cast_nullable_to_non_nullable
  81. as EditPannelContext,
  82. ));
  83. }
  84. }
  85. /// @nodoc
  86. abstract class _$StartEditCopyWith<$Res>
  87. implements $EditPannelEventCopyWith<$Res> {
  88. factory _$StartEditCopyWith(
  89. _StartEdit value, $Res Function(_StartEdit) then) =
  90. __$StartEditCopyWithImpl<$Res>;
  91. @override
  92. $Res call({EditPannelContext context});
  93. }
  94. /// @nodoc
  95. class __$StartEditCopyWithImpl<$Res> extends _$EditPannelEventCopyWithImpl<$Res>
  96. implements _$StartEditCopyWith<$Res> {
  97. __$StartEditCopyWithImpl(_StartEdit _value, $Res Function(_StartEdit) _then)
  98. : super(_value, (v) => _then(v as _StartEdit));
  99. @override
  100. _StartEdit get _value => super._value as _StartEdit;
  101. @override
  102. $Res call({
  103. Object? context = freezed,
  104. }) {
  105. return _then(_StartEdit(
  106. context == freezed
  107. ? _value.context
  108. : context // ignore: cast_nullable_to_non_nullable
  109. as EditPannelContext,
  110. ));
  111. }
  112. }
  113. /// @nodoc
  114. class _$_StartEdit implements _StartEdit {
  115. const _$_StartEdit(this.context);
  116. @override
  117. final EditPannelContext context;
  118. @override
  119. String toString() {
  120. return 'EditPannelEvent.startEdit(context: $context)';
  121. }
  122. @override
  123. bool operator ==(dynamic other) {
  124. return identical(this, other) ||
  125. (other is _StartEdit &&
  126. (identical(other.context, context) ||
  127. const DeepCollectionEquality().equals(other.context, context)));
  128. }
  129. @override
  130. int get hashCode =>
  131. runtimeType.hashCode ^ const DeepCollectionEquality().hash(context);
  132. @JsonKey(ignore: true)
  133. @override
  134. _$StartEditCopyWith<_StartEdit> get copyWith =>
  135. __$StartEditCopyWithImpl<_StartEdit>(this, _$identity);
  136. @override
  137. @optionalTypeArgs
  138. TResult when<TResult extends Object?>({
  139. required TResult Function(EditPannelContext context) startEdit,
  140. required TResult Function(EditPannelContext context) endEdit,
  141. }) {
  142. return startEdit(context);
  143. }
  144. @override
  145. @optionalTypeArgs
  146. TResult maybeWhen<TResult extends Object?>({
  147. TResult Function(EditPannelContext context)? startEdit,
  148. TResult Function(EditPannelContext context)? endEdit,
  149. required TResult orElse(),
  150. }) {
  151. if (startEdit != null) {
  152. return startEdit(context);
  153. }
  154. return orElse();
  155. }
  156. @override
  157. @optionalTypeArgs
  158. TResult map<TResult extends Object?>({
  159. required TResult Function(_StartEdit value) startEdit,
  160. required TResult Function(_EndEdit value) endEdit,
  161. }) {
  162. return startEdit(this);
  163. }
  164. @override
  165. @optionalTypeArgs
  166. TResult maybeMap<TResult extends Object?>({
  167. TResult Function(_StartEdit value)? startEdit,
  168. TResult Function(_EndEdit value)? endEdit,
  169. required TResult orElse(),
  170. }) {
  171. if (startEdit != null) {
  172. return startEdit(this);
  173. }
  174. return orElse();
  175. }
  176. }
  177. abstract class _StartEdit implements EditPannelEvent {
  178. const factory _StartEdit(EditPannelContext context) = _$_StartEdit;
  179. @override
  180. EditPannelContext get context => throw _privateConstructorUsedError;
  181. @override
  182. @JsonKey(ignore: true)
  183. _$StartEditCopyWith<_StartEdit> get copyWith =>
  184. throw _privateConstructorUsedError;
  185. }
  186. /// @nodoc
  187. abstract class _$EndEditCopyWith<$Res>
  188. implements $EditPannelEventCopyWith<$Res> {
  189. factory _$EndEditCopyWith(_EndEdit value, $Res Function(_EndEdit) then) =
  190. __$EndEditCopyWithImpl<$Res>;
  191. @override
  192. $Res call({EditPannelContext context});
  193. }
  194. /// @nodoc
  195. class __$EndEditCopyWithImpl<$Res> extends _$EditPannelEventCopyWithImpl<$Res>
  196. implements _$EndEditCopyWith<$Res> {
  197. __$EndEditCopyWithImpl(_EndEdit _value, $Res Function(_EndEdit) _then)
  198. : super(_value, (v) => _then(v as _EndEdit));
  199. @override
  200. _EndEdit get _value => super._value as _EndEdit;
  201. @override
  202. $Res call({
  203. Object? context = freezed,
  204. }) {
  205. return _then(_EndEdit(
  206. context == freezed
  207. ? _value.context
  208. : context // ignore: cast_nullable_to_non_nullable
  209. as EditPannelContext,
  210. ));
  211. }
  212. }
  213. /// @nodoc
  214. class _$_EndEdit implements _EndEdit {
  215. const _$_EndEdit(this.context);
  216. @override
  217. final EditPannelContext context;
  218. @override
  219. String toString() {
  220. return 'EditPannelEvent.endEdit(context: $context)';
  221. }
  222. @override
  223. bool operator ==(dynamic other) {
  224. return identical(this, other) ||
  225. (other is _EndEdit &&
  226. (identical(other.context, context) ||
  227. const DeepCollectionEquality().equals(other.context, context)));
  228. }
  229. @override
  230. int get hashCode =>
  231. runtimeType.hashCode ^ const DeepCollectionEquality().hash(context);
  232. @JsonKey(ignore: true)
  233. @override
  234. _$EndEditCopyWith<_EndEdit> get copyWith =>
  235. __$EndEditCopyWithImpl<_EndEdit>(this, _$identity);
  236. @override
  237. @optionalTypeArgs
  238. TResult when<TResult extends Object?>({
  239. required TResult Function(EditPannelContext context) startEdit,
  240. required TResult Function(EditPannelContext context) endEdit,
  241. }) {
  242. return endEdit(context);
  243. }
  244. @override
  245. @optionalTypeArgs
  246. TResult maybeWhen<TResult extends Object?>({
  247. TResult Function(EditPannelContext context)? startEdit,
  248. TResult Function(EditPannelContext context)? endEdit,
  249. required TResult orElse(),
  250. }) {
  251. if (endEdit != null) {
  252. return endEdit(context);
  253. }
  254. return orElse();
  255. }
  256. @override
  257. @optionalTypeArgs
  258. TResult map<TResult extends Object?>({
  259. required TResult Function(_StartEdit value) startEdit,
  260. required TResult Function(_EndEdit value) endEdit,
  261. }) {
  262. return endEdit(this);
  263. }
  264. @override
  265. @optionalTypeArgs
  266. TResult maybeMap<TResult extends Object?>({
  267. TResult Function(_StartEdit value)? startEdit,
  268. TResult Function(_EndEdit value)? endEdit,
  269. required TResult orElse(),
  270. }) {
  271. if (endEdit != null) {
  272. return endEdit(this);
  273. }
  274. return orElse();
  275. }
  276. }
  277. abstract class _EndEdit implements EditPannelEvent {
  278. const factory _EndEdit(EditPannelContext context) = _$_EndEdit;
  279. @override
  280. EditPannelContext get context => throw _privateConstructorUsedError;
  281. @override
  282. @JsonKey(ignore: true)
  283. _$EndEditCopyWith<_EndEdit> get copyWith =>
  284. throw _privateConstructorUsedError;
  285. }
  286. /// @nodoc
  287. class _$EditPannelStateTearOff {
  288. const _$EditPannelStateTearOff();
  289. _EditPannelState call(
  290. {required bool isEditing,
  291. required Option<EditPannelContext> editContext}) {
  292. return _EditPannelState(
  293. isEditing: isEditing,
  294. editContext: editContext,
  295. );
  296. }
  297. }
  298. /// @nodoc
  299. const $EditPannelState = _$EditPannelStateTearOff();
  300. /// @nodoc
  301. mixin _$EditPannelState {
  302. bool get isEditing => throw _privateConstructorUsedError;
  303. Option<EditPannelContext> get editContext =>
  304. throw _privateConstructorUsedError;
  305. @JsonKey(ignore: true)
  306. $EditPannelStateCopyWith<EditPannelState> get copyWith =>
  307. throw _privateConstructorUsedError;
  308. }
  309. /// @nodoc
  310. abstract class $EditPannelStateCopyWith<$Res> {
  311. factory $EditPannelStateCopyWith(
  312. EditPannelState value, $Res Function(EditPannelState) then) =
  313. _$EditPannelStateCopyWithImpl<$Res>;
  314. $Res call({bool isEditing, Option<EditPannelContext> editContext});
  315. }
  316. /// @nodoc
  317. class _$EditPannelStateCopyWithImpl<$Res>
  318. implements $EditPannelStateCopyWith<$Res> {
  319. _$EditPannelStateCopyWithImpl(this._value, this._then);
  320. final EditPannelState _value;
  321. // ignore: unused_field
  322. final $Res Function(EditPannelState) _then;
  323. @override
  324. $Res call({
  325. Object? isEditing = freezed,
  326. Object? editContext = freezed,
  327. }) {
  328. return _then(_value.copyWith(
  329. isEditing: isEditing == freezed
  330. ? _value.isEditing
  331. : isEditing // ignore: cast_nullable_to_non_nullable
  332. as bool,
  333. editContext: editContext == freezed
  334. ? _value.editContext
  335. : editContext // ignore: cast_nullable_to_non_nullable
  336. as Option<EditPannelContext>,
  337. ));
  338. }
  339. }
  340. /// @nodoc
  341. abstract class _$EditPannelStateCopyWith<$Res>
  342. implements $EditPannelStateCopyWith<$Res> {
  343. factory _$EditPannelStateCopyWith(
  344. _EditPannelState value, $Res Function(_EditPannelState) then) =
  345. __$EditPannelStateCopyWithImpl<$Res>;
  346. @override
  347. $Res call({bool isEditing, Option<EditPannelContext> editContext});
  348. }
  349. /// @nodoc
  350. class __$EditPannelStateCopyWithImpl<$Res>
  351. extends _$EditPannelStateCopyWithImpl<$Res>
  352. implements _$EditPannelStateCopyWith<$Res> {
  353. __$EditPannelStateCopyWithImpl(
  354. _EditPannelState _value, $Res Function(_EditPannelState) _then)
  355. : super(_value, (v) => _then(v as _EditPannelState));
  356. @override
  357. _EditPannelState get _value => super._value as _EditPannelState;
  358. @override
  359. $Res call({
  360. Object? isEditing = freezed,
  361. Object? editContext = freezed,
  362. }) {
  363. return _then(_EditPannelState(
  364. isEditing: isEditing == freezed
  365. ? _value.isEditing
  366. : isEditing // ignore: cast_nullable_to_non_nullable
  367. as bool,
  368. editContext: editContext == freezed
  369. ? _value.editContext
  370. : editContext // ignore: cast_nullable_to_non_nullable
  371. as Option<EditPannelContext>,
  372. ));
  373. }
  374. }
  375. /// @nodoc
  376. class _$_EditPannelState implements _EditPannelState {
  377. const _$_EditPannelState(
  378. {required this.isEditing, required this.editContext});
  379. @override
  380. final bool isEditing;
  381. @override
  382. final Option<EditPannelContext> editContext;
  383. @override
  384. String toString() {
  385. return 'EditPannelState(isEditing: $isEditing, editContext: $editContext)';
  386. }
  387. @override
  388. bool operator ==(dynamic other) {
  389. return identical(this, other) ||
  390. (other is _EditPannelState &&
  391. (identical(other.isEditing, isEditing) ||
  392. const DeepCollectionEquality()
  393. .equals(other.isEditing, isEditing)) &&
  394. (identical(other.editContext, editContext) ||
  395. const DeepCollectionEquality()
  396. .equals(other.editContext, editContext)));
  397. }
  398. @override
  399. int get hashCode =>
  400. runtimeType.hashCode ^
  401. const DeepCollectionEquality().hash(isEditing) ^
  402. const DeepCollectionEquality().hash(editContext);
  403. @JsonKey(ignore: true)
  404. @override
  405. _$EditPannelStateCopyWith<_EditPannelState> get copyWith =>
  406. __$EditPannelStateCopyWithImpl<_EditPannelState>(this, _$identity);
  407. }
  408. abstract class _EditPannelState implements EditPannelState {
  409. const factory _EditPannelState(
  410. {required bool isEditing,
  411. required Option<EditPannelContext> editContext}) = _$_EditPannelState;
  412. @override
  413. bool get isEditing => throw _privateConstructorUsedError;
  414. @override
  415. Option<EditPannelContext> get editContext =>
  416. throw _privateConstructorUsedError;
  417. @override
  418. @JsonKey(ignore: true)
  419. _$EditPannelStateCopyWith<_EditPannelState> get copyWith =>
  420. throw _privateConstructorUsedError;
  421. }