You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

831 lines
25 KiB

2 years ago
  1. // coverage:ignore-file
  2. // GENERATED CODE - DO NOT MODIFY BY HAND
  3. // ignore_for_file: type=lint
  4. // 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
  5. part of 'multi_puzzle_state.dart';
  6. // **************************************************************************
  7. // FreezedGenerator
  8. // **************************************************************************
  9. T _$identity<T>(T value) => value;
  10. final _privateConstructorUsedError = UnsupportedError(
  11. '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');
  12. /// @nodoc
  13. class _$MultiPuzzleStateTearOff {
  14. const _$MultiPuzzleStateTearOff();
  15. MultiPuzzleIdle call() {
  16. return const MultiPuzzleIdle();
  17. }
  18. MultiPuzzleInitializing initializing() {
  19. return const MultiPuzzleInitializing();
  20. }
  21. MultiPuzzleCurrent current(PuzzleData puzzleData) {
  22. return MultiPuzzleCurrent(
  23. puzzleData,
  24. );
  25. }
  26. MultiPuzzleSolved solved(PuzzleData puzzleData) {
  27. return MultiPuzzleSolved(
  28. puzzleData,
  29. );
  30. }
  31. MultiPuzzleError error({String? message}) {
  32. return MultiPuzzleError(
  33. message: message,
  34. );
  35. }
  36. }
  37. /// @nodoc
  38. const $MultiPuzzleState = _$MultiPuzzleStateTearOff();
  39. /// @nodoc
  40. mixin _$MultiPuzzleState {
  41. @optionalTypeArgs
  42. TResult when<TResult extends Object?>(
  43. TResult Function() $default, {
  44. required TResult Function() initializing,
  45. required TResult Function(PuzzleData puzzleData) current,
  46. required TResult Function(PuzzleData puzzleData) solved,
  47. required TResult Function(String? message) error,
  48. }) =>
  49. throw _privateConstructorUsedError;
  50. @optionalTypeArgs
  51. TResult? whenOrNull<TResult extends Object?>(
  52. TResult Function()? $default, {
  53. TResult Function()? initializing,
  54. TResult Function(PuzzleData puzzleData)? current,
  55. TResult Function(PuzzleData puzzleData)? solved,
  56. TResult Function(String? message)? error,
  57. }) =>
  58. throw _privateConstructorUsedError;
  59. @optionalTypeArgs
  60. TResult maybeWhen<TResult extends Object?>(
  61. TResult Function()? $default, {
  62. TResult Function()? initializing,
  63. TResult Function(PuzzleData puzzleData)? current,
  64. TResult Function(PuzzleData puzzleData)? solved,
  65. TResult Function(String? message)? error,
  66. required TResult orElse(),
  67. }) =>
  68. throw _privateConstructorUsedError;
  69. @optionalTypeArgs
  70. TResult map<TResult extends Object?>(
  71. TResult Function(MultiPuzzleIdle value) $default, {
  72. required TResult Function(MultiPuzzleInitializing value) initializing,
  73. required TResult Function(MultiPuzzleCurrent value) current,
  74. required TResult Function(MultiPuzzleSolved value) solved,
  75. required TResult Function(MultiPuzzleError value) error,
  76. }) =>
  77. throw _privateConstructorUsedError;
  78. @optionalTypeArgs
  79. TResult? mapOrNull<TResult extends Object?>(
  80. TResult Function(MultiPuzzleIdle value)? $default, {
  81. TResult Function(MultiPuzzleInitializing value)? initializing,
  82. TResult Function(MultiPuzzleCurrent value)? current,
  83. TResult Function(MultiPuzzleSolved value)? solved,
  84. TResult Function(MultiPuzzleError value)? error,
  85. }) =>
  86. throw _privateConstructorUsedError;
  87. @optionalTypeArgs
  88. TResult maybeMap<TResult extends Object?>(
  89. TResult Function(MultiPuzzleIdle value)? $default, {
  90. TResult Function(MultiPuzzleInitializing value)? initializing,
  91. TResult Function(MultiPuzzleCurrent value)? current,
  92. TResult Function(MultiPuzzleSolved value)? solved,
  93. TResult Function(MultiPuzzleError value)? error,
  94. required TResult orElse(),
  95. }) =>
  96. throw _privateConstructorUsedError;
  97. }
  98. /// @nodoc
  99. abstract class $MultiPuzzleStateCopyWith<$Res> {
  100. factory $MultiPuzzleStateCopyWith(
  101. MultiPuzzleState value, $Res Function(MultiPuzzleState) then) =
  102. _$MultiPuzzleStateCopyWithImpl<$Res>;
  103. }
  104. /// @nodoc
  105. class _$MultiPuzzleStateCopyWithImpl<$Res>
  106. implements $MultiPuzzleStateCopyWith<$Res> {
  107. _$MultiPuzzleStateCopyWithImpl(this._value, this._then);
  108. final MultiPuzzleState _value;
  109. // ignore: unused_field
  110. final $Res Function(MultiPuzzleState) _then;
  111. }
  112. /// @nodoc
  113. abstract class $MultiPuzzleIdleCopyWith<$Res> {
  114. factory $MultiPuzzleIdleCopyWith(
  115. MultiPuzzleIdle value, $Res Function(MultiPuzzleIdle) then) =
  116. _$MultiPuzzleIdleCopyWithImpl<$Res>;
  117. }
  118. /// @nodoc
  119. class _$MultiPuzzleIdleCopyWithImpl<$Res>
  120. extends _$MultiPuzzleStateCopyWithImpl<$Res>
  121. implements $MultiPuzzleIdleCopyWith<$Res> {
  122. _$MultiPuzzleIdleCopyWithImpl(
  123. MultiPuzzleIdle _value, $Res Function(MultiPuzzleIdle) _then)
  124. : super(_value, (v) => _then(v as MultiPuzzleIdle));
  125. @override
  126. MultiPuzzleIdle get _value => super._value as MultiPuzzleIdle;
  127. }
  128. /// @nodoc
  129. class _$MultiPuzzleIdle implements MultiPuzzleIdle {
  130. const _$MultiPuzzleIdle();
  131. @override
  132. String toString() {
  133. return 'MultiPuzzleState()';
  134. }
  135. @override
  136. bool operator ==(dynamic other) {
  137. return identical(this, other) ||
  138. (other.runtimeType == runtimeType && other is MultiPuzzleIdle);
  139. }
  140. @override
  141. int get hashCode => runtimeType.hashCode;
  142. @override
  143. @optionalTypeArgs
  144. TResult when<TResult extends Object?>(
  145. TResult Function() $default, {
  146. required TResult Function() initializing,
  147. required TResult Function(PuzzleData puzzleData) current,
  148. required TResult Function(PuzzleData puzzleData) solved,
  149. required TResult Function(String? message) error,
  150. }) {
  151. return $default();
  152. }
  153. @override
  154. @optionalTypeArgs
  155. TResult? whenOrNull<TResult extends Object?>(
  156. TResult Function()? $default, {
  157. TResult Function()? initializing,
  158. TResult Function(PuzzleData puzzleData)? current,
  159. TResult Function(PuzzleData puzzleData)? solved,
  160. TResult Function(String? message)? error,
  161. }) {
  162. return $default?.call();
  163. }
  164. @override
  165. @optionalTypeArgs
  166. TResult maybeWhen<TResult extends Object?>(
  167. TResult Function()? $default, {
  168. TResult Function()? initializing,
  169. TResult Function(PuzzleData puzzleData)? current,
  170. TResult Function(PuzzleData puzzleData)? solved,
  171. TResult Function(String? message)? error,
  172. required TResult orElse(),
  173. }) {
  174. if ($default != null) {
  175. return $default();
  176. }
  177. return orElse();
  178. }
  179. @override
  180. @optionalTypeArgs
  181. TResult map<TResult extends Object?>(
  182. TResult Function(MultiPuzzleIdle value) $default, {
  183. required TResult Function(MultiPuzzleInitializing value) initializing,
  184. required TResult Function(MultiPuzzleCurrent value) current,
  185. required TResult Function(MultiPuzzleSolved value) solved,
  186. required TResult Function(MultiPuzzleError value) error,
  187. }) {
  188. return $default(this);
  189. }
  190. @override
  191. @optionalTypeArgs
  192. TResult? mapOrNull<TResult extends Object?>(
  193. TResult Function(MultiPuzzleIdle value)? $default, {
  194. TResult Function(MultiPuzzleInitializing value)? initializing,
  195. TResult Function(MultiPuzzleCurrent value)? current,
  196. TResult Function(MultiPuzzleSolved value)? solved,
  197. TResult Function(MultiPuzzleError value)? error,
  198. }) {
  199. return $default?.call(this);
  200. }
  201. @override
  202. @optionalTypeArgs
  203. TResult maybeMap<TResult extends Object?>(
  204. TResult Function(MultiPuzzleIdle value)? $default, {
  205. TResult Function(MultiPuzzleInitializing value)? initializing,
  206. TResult Function(MultiPuzzleCurrent value)? current,
  207. TResult Function(MultiPuzzleSolved value)? solved,
  208. TResult Function(MultiPuzzleError value)? error,
  209. required TResult orElse(),
  210. }) {
  211. if ($default != null) {
  212. return $default(this);
  213. }
  214. return orElse();
  215. }
  216. }
  217. abstract class MultiPuzzleIdle implements MultiPuzzleState {
  218. const factory MultiPuzzleIdle() = _$MultiPuzzleIdle;
  219. }
  220. /// @nodoc
  221. abstract class $MultiPuzzleInitializingCopyWith<$Res> {
  222. factory $MultiPuzzleInitializingCopyWith(MultiPuzzleInitializing value,
  223. $Res Function(MultiPuzzleInitializing) then) =
  224. _$MultiPuzzleInitializingCopyWithImpl<$Res>;
  225. }
  226. /// @nodoc
  227. class _$MultiPuzzleInitializingCopyWithImpl<$Res>
  228. extends _$MultiPuzzleStateCopyWithImpl<$Res>
  229. implements $MultiPuzzleInitializingCopyWith<$Res> {
  230. _$MultiPuzzleInitializingCopyWithImpl(MultiPuzzleInitializing _value,
  231. $Res Function(MultiPuzzleInitializing) _then)
  232. : super(_value, (v) => _then(v as MultiPuzzleInitializing));
  233. @override
  234. MultiPuzzleInitializing get _value => super._value as MultiPuzzleInitializing;
  235. }
  236. /// @nodoc
  237. class _$MultiPuzzleInitializing implements MultiPuzzleInitializing {
  238. const _$MultiPuzzleInitializing();
  239. @override
  240. String toString() {
  241. return 'MultiPuzzleState.initializing()';
  242. }
  243. @override
  244. bool operator ==(dynamic other) {
  245. return identical(this, other) ||
  246. (other.runtimeType == runtimeType && other is MultiPuzzleInitializing);
  247. }
  248. @override
  249. int get hashCode => runtimeType.hashCode;
  250. @override
  251. @optionalTypeArgs
  252. TResult when<TResult extends Object?>(
  253. TResult Function() $default, {
  254. required TResult Function() initializing,
  255. required TResult Function(PuzzleData puzzleData) current,
  256. required TResult Function(PuzzleData puzzleData) solved,
  257. required TResult Function(String? message) error,
  258. }) {
  259. return initializing();
  260. }
  261. @override
  262. @optionalTypeArgs
  263. TResult? whenOrNull<TResult extends Object?>(
  264. TResult Function()? $default, {
  265. TResult Function()? initializing,
  266. TResult Function(PuzzleData puzzleData)? current,
  267. TResult Function(PuzzleData puzzleData)? solved,
  268. TResult Function(String? message)? error,
  269. }) {
  270. return initializing?.call();
  271. }
  272. @override
  273. @optionalTypeArgs
  274. TResult maybeWhen<TResult extends Object?>(
  275. TResult Function()? $default, {
  276. TResult Function()? initializing,
  277. TResult Function(PuzzleData puzzleData)? current,
  278. TResult Function(PuzzleData puzzleData)? solved,
  279. TResult Function(String? message)? error,
  280. required TResult orElse(),
  281. }) {
  282. if (initializing != null) {
  283. return initializing();
  284. }
  285. return orElse();
  286. }
  287. @override
  288. @optionalTypeArgs
  289. TResult map<TResult extends Object?>(
  290. TResult Function(MultiPuzzleIdle value) $default, {
  291. required TResult Function(MultiPuzzleInitializing value) initializing,
  292. required TResult Function(MultiPuzzleCurrent value) current,
  293. required TResult Function(MultiPuzzleSolved value) solved,
  294. required TResult Function(MultiPuzzleError value) error,
  295. }) {
  296. return initializing(this);
  297. }
  298. @override
  299. @optionalTypeArgs
  300. TResult? mapOrNull<TResult extends Object?>(
  301. TResult Function(MultiPuzzleIdle value)? $default, {
  302. TResult Function(MultiPuzzleInitializing value)? initializing,
  303. TResult Function(MultiPuzzleCurrent value)? current,
  304. TResult Function(MultiPuzzleSolved value)? solved,
  305. TResult Function(MultiPuzzleError value)? error,
  306. }) {
  307. return initializing?.call(this);
  308. }
  309. @override
  310. @optionalTypeArgs
  311. TResult maybeMap<TResult extends Object?>(
  312. TResult Function(MultiPuzzleIdle value)? $default, {
  313. TResult Function(MultiPuzzleInitializing value)? initializing,
  314. TResult Function(MultiPuzzleCurrent value)? current,
  315. TResult Function(MultiPuzzleSolved value)? solved,
  316. TResult Function(MultiPuzzleError value)? error,
  317. required TResult orElse(),
  318. }) {
  319. if (initializing != null) {
  320. return initializing(this);
  321. }
  322. return orElse();
  323. }
  324. }
  325. abstract class MultiPuzzleInitializing implements MultiPuzzleState {
  326. const factory MultiPuzzleInitializing() = _$MultiPuzzleInitializing;
  327. }
  328. /// @nodoc
  329. abstract class $MultiPuzzleCurrentCopyWith<$Res> {
  330. factory $MultiPuzzleCurrentCopyWith(
  331. MultiPuzzleCurrent value, $Res Function(MultiPuzzleCurrent) then) =
  332. _$MultiPuzzleCurrentCopyWithImpl<$Res>;
  333. $Res call({PuzzleData puzzleData});
  334. }
  335. /// @nodoc
  336. class _$MultiPuzzleCurrentCopyWithImpl<$Res>
  337. extends _$MultiPuzzleStateCopyWithImpl<$Res>
  338. implements $MultiPuzzleCurrentCopyWith<$Res> {
  339. _$MultiPuzzleCurrentCopyWithImpl(
  340. MultiPuzzleCurrent _value, $Res Function(MultiPuzzleCurrent) _then)
  341. : super(_value, (v) => _then(v as MultiPuzzleCurrent));
  342. @override
  343. MultiPuzzleCurrent get _value => super._value as MultiPuzzleCurrent;
  344. @override
  345. $Res call({
  346. Object? puzzleData = freezed,
  347. }) {
  348. return _then(MultiPuzzleCurrent(
  349. puzzleData == freezed
  350. ? _value.puzzleData
  351. : puzzleData // ignore: cast_nullable_to_non_nullable
  352. as PuzzleData,
  353. ));
  354. }
  355. }
  356. /// @nodoc
  357. class _$MultiPuzzleCurrent implements MultiPuzzleCurrent {
  358. const _$MultiPuzzleCurrent(this.puzzleData);
  359. @override
  360. final PuzzleData puzzleData;
  361. @override
  362. String toString() {
  363. return 'MultiPuzzleState.current(puzzleData: $puzzleData)';
  364. }
  365. @override
  366. bool operator ==(dynamic other) {
  367. return identical(this, other) ||
  368. (other.runtimeType == runtimeType &&
  369. other is MultiPuzzleCurrent &&
  370. const DeepCollectionEquality()
  371. .equals(other.puzzleData, puzzleData));
  372. }
  373. @override
  374. int get hashCode =>
  375. Object.hash(runtimeType, const DeepCollectionEquality().hash(puzzleData));
  376. @JsonKey(ignore: true)
  377. @override
  378. $MultiPuzzleCurrentCopyWith<MultiPuzzleCurrent> get copyWith =>
  379. _$MultiPuzzleCurrentCopyWithImpl<MultiPuzzleCurrent>(this, _$identity);
  380. @override
  381. @optionalTypeArgs
  382. TResult when<TResult extends Object?>(
  383. TResult Function() $default, {
  384. required TResult Function() initializing,
  385. required TResult Function(PuzzleData puzzleData) current,
  386. required TResult Function(PuzzleData puzzleData) solved,
  387. required TResult Function(String? message) error,
  388. }) {
  389. return current(puzzleData);
  390. }
  391. @override
  392. @optionalTypeArgs
  393. TResult? whenOrNull<TResult extends Object?>(
  394. TResult Function()? $default, {
  395. TResult Function()? initializing,
  396. TResult Function(PuzzleData puzzleData)? current,
  397. TResult Function(PuzzleData puzzleData)? solved,
  398. TResult Function(String? message)? error,
  399. }) {
  400. return current?.call(puzzleData);
  401. }
  402. @override
  403. @optionalTypeArgs
  404. TResult maybeWhen<TResult extends Object?>(
  405. TResult Function()? $default, {
  406. TResult Function()? initializing,
  407. TResult Function(PuzzleData puzzleData)? current,
  408. TResult Function(PuzzleData puzzleData)? solved,
  409. TResult Function(String? message)? error,
  410. required TResult orElse(),
  411. }) {
  412. if (current != null) {
  413. return current(puzzleData);
  414. }
  415. return orElse();
  416. }
  417. @override
  418. @optionalTypeArgs
  419. TResult map<TResult extends Object?>(
  420. TResult Function(MultiPuzzleIdle value) $default, {
  421. required TResult Function(MultiPuzzleInitializing value) initializing,
  422. required TResult Function(MultiPuzzleCurrent value) current,
  423. required TResult Function(MultiPuzzleSolved value) solved,
  424. required TResult Function(MultiPuzzleError value) error,
  425. }) {
  426. return current(this);
  427. }
  428. @override
  429. @optionalTypeArgs
  430. TResult? mapOrNull<TResult extends Object?>(
  431. TResult Function(MultiPuzzleIdle value)? $default, {
  432. TResult Function(MultiPuzzleInitializing value)? initializing,
  433. TResult Function(MultiPuzzleCurrent value)? current,
  434. TResult Function(MultiPuzzleSolved value)? solved,
  435. TResult Function(MultiPuzzleError value)? error,
  436. }) {
  437. return current?.call(this);
  438. }
  439. @override
  440. @optionalTypeArgs
  441. TResult maybeMap<TResult extends Object?>(
  442. TResult Function(MultiPuzzleIdle value)? $default, {
  443. TResult Function(MultiPuzzleInitializing value)? initializing,
  444. TResult Function(MultiPuzzleCurrent value)? current,
  445. TResult Function(MultiPuzzleSolved value)? solved,
  446. TResult Function(MultiPuzzleError value)? error,
  447. required TResult orElse(),
  448. }) {
  449. if (current != null) {
  450. return current(this);
  451. }
  452. return orElse();
  453. }
  454. }
  455. abstract class MultiPuzzleCurrent implements MultiPuzzleState {
  456. const factory MultiPuzzleCurrent(PuzzleData puzzleData) =
  457. _$MultiPuzzleCurrent;
  458. PuzzleData get puzzleData;
  459. @JsonKey(ignore: true)
  460. $MultiPuzzleCurrentCopyWith<MultiPuzzleCurrent> get copyWith =>
  461. throw _privateConstructorUsedError;
  462. }
  463. /// @nodoc
  464. abstract class $MultiPuzzleSolvedCopyWith<$Res> {
  465. factory $MultiPuzzleSolvedCopyWith(
  466. MultiPuzzleSolved value, $Res Function(MultiPuzzleSolved) then) =
  467. _$MultiPuzzleSolvedCopyWithImpl<$Res>;
  468. $Res call({PuzzleData puzzleData});
  469. }
  470. /// @nodoc
  471. class _$MultiPuzzleSolvedCopyWithImpl<$Res>
  472. extends _$MultiPuzzleStateCopyWithImpl<$Res>
  473. implements $MultiPuzzleSolvedCopyWith<$Res> {
  474. _$MultiPuzzleSolvedCopyWithImpl(
  475. MultiPuzzleSolved _value, $Res Function(MultiPuzzleSolved) _then)
  476. : super(_value, (v) => _then(v as MultiPuzzleSolved));
  477. @override
  478. MultiPuzzleSolved get _value => super._value as MultiPuzzleSolved;
  479. @override
  480. $Res call({
  481. Object? puzzleData = freezed,
  482. }) {
  483. return _then(MultiPuzzleSolved(
  484. puzzleData == freezed
  485. ? _value.puzzleData
  486. : puzzleData // ignore: cast_nullable_to_non_nullable
  487. as PuzzleData,
  488. ));
  489. }
  490. }
  491. /// @nodoc
  492. class _$MultiPuzzleSolved implements MultiPuzzleSolved {
  493. const _$MultiPuzzleSolved(this.puzzleData);
  494. @override
  495. final PuzzleData puzzleData;
  496. @override
  497. String toString() {
  498. return 'MultiPuzzleState.solved(puzzleData: $puzzleData)';
  499. }
  500. @override
  501. bool operator ==(dynamic other) {
  502. return identical(this, other) ||
  503. (other.runtimeType == runtimeType &&
  504. other is MultiPuzzleSolved &&
  505. const DeepCollectionEquality()
  506. .equals(other.puzzleData, puzzleData));
  507. }
  508. @override
  509. int get hashCode =>
  510. Object.hash(runtimeType, const DeepCollectionEquality().hash(puzzleData));
  511. @JsonKey(ignore: true)
  512. @override
  513. $MultiPuzzleSolvedCopyWith<MultiPuzzleSolved> get copyWith =>
  514. _$MultiPuzzleSolvedCopyWithImpl<MultiPuzzleSolved>(this, _$identity);
  515. @override
  516. @optionalTypeArgs
  517. TResult when<TResult extends Object?>(
  518. TResult Function() $default, {
  519. required TResult Function() initializing,
  520. required TResult Function(PuzzleData puzzleData) current,
  521. required TResult Function(PuzzleData puzzleData) solved,
  522. required TResult Function(String? message) error,
  523. }) {
  524. return solved(puzzleData);
  525. }
  526. @override
  527. @optionalTypeArgs
  528. TResult? whenOrNull<TResult extends Object?>(
  529. TResult Function()? $default, {
  530. TResult Function()? initializing,
  531. TResult Function(PuzzleData puzzleData)? current,
  532. TResult Function(PuzzleData puzzleData)? solved,
  533. TResult Function(String? message)? error,
  534. }) {
  535. return solved?.call(puzzleData);
  536. }
  537. @override
  538. @optionalTypeArgs
  539. TResult maybeWhen<TResult extends Object?>(
  540. TResult Function()? $default, {
  541. TResult Function()? initializing,
  542. TResult Function(PuzzleData puzzleData)? current,
  543. TResult Function(PuzzleData puzzleData)? solved,
  544. TResult Function(String? message)? error,
  545. required TResult orElse(),
  546. }) {
  547. if (solved != null) {
  548. return solved(puzzleData);
  549. }
  550. return orElse();
  551. }
  552. @override
  553. @optionalTypeArgs
  554. TResult map<TResult extends Object?>(
  555. TResult Function(MultiPuzzleIdle value) $default, {
  556. required TResult Function(MultiPuzzleInitializing value) initializing,
  557. required TResult Function(MultiPuzzleCurrent value) current,
  558. required TResult Function(MultiPuzzleSolved value) solved,
  559. required TResult Function(MultiPuzzleError value) error,
  560. }) {
  561. return solved(this);
  562. }
  563. @override
  564. @optionalTypeArgs
  565. TResult? mapOrNull<TResult extends Object?>(
  566. TResult Function(MultiPuzzleIdle value)? $default, {
  567. TResult Function(MultiPuzzleInitializing value)? initializing,
  568. TResult Function(MultiPuzzleCurrent value)? current,
  569. TResult Function(MultiPuzzleSolved value)? solved,
  570. TResult Function(MultiPuzzleError value)? error,
  571. }) {
  572. return solved?.call(this);
  573. }
  574. @override
  575. @optionalTypeArgs
  576. TResult maybeMap<TResult extends Object?>(
  577. TResult Function(MultiPuzzleIdle value)? $default, {
  578. TResult Function(MultiPuzzleInitializing value)? initializing,
  579. TResult Function(MultiPuzzleCurrent value)? current,
  580. TResult Function(MultiPuzzleSolved value)? solved,
  581. TResult Function(MultiPuzzleError value)? error,
  582. required TResult orElse(),
  583. }) {
  584. if (solved != null) {
  585. return solved(this);
  586. }
  587. return orElse();
  588. }
  589. }
  590. abstract class MultiPuzzleSolved implements MultiPuzzleState {
  591. const factory MultiPuzzleSolved(PuzzleData puzzleData) = _$MultiPuzzleSolved;
  592. PuzzleData get puzzleData;
  593. @JsonKey(ignore: true)
  594. $MultiPuzzleSolvedCopyWith<MultiPuzzleSolved> get copyWith =>
  595. throw _privateConstructorUsedError;
  596. }
  597. /// @nodoc
  598. abstract class $MultiPuzzleErrorCopyWith<$Res> {
  599. factory $MultiPuzzleErrorCopyWith(
  600. MultiPuzzleError value, $Res Function(MultiPuzzleError) then) =
  601. _$MultiPuzzleErrorCopyWithImpl<$Res>;
  602. $Res call({String? message});
  603. }
  604. /// @nodoc
  605. class _$MultiPuzzleErrorCopyWithImpl<$Res>
  606. extends _$MultiPuzzleStateCopyWithImpl<$Res>
  607. implements $MultiPuzzleErrorCopyWith<$Res> {
  608. _$MultiPuzzleErrorCopyWithImpl(
  609. MultiPuzzleError _value, $Res Function(MultiPuzzleError) _then)
  610. : super(_value, (v) => _then(v as MultiPuzzleError));
  611. @override
  612. MultiPuzzleError get _value => super._value as MultiPuzzleError;
  613. @override
  614. $Res call({
  615. Object? message = freezed,
  616. }) {
  617. return _then(MultiPuzzleError(
  618. message: message == freezed
  619. ? _value.message
  620. : message // ignore: cast_nullable_to_non_nullable
  621. as String?,
  622. ));
  623. }
  624. }
  625. /// @nodoc
  626. class _$MultiPuzzleError implements MultiPuzzleError {
  627. const _$MultiPuzzleError({this.message});
  628. @override
  629. final String? message;
  630. @override
  631. String toString() {
  632. return 'MultiPuzzleState.error(message: $message)';
  633. }
  634. @override
  635. bool operator ==(dynamic other) {
  636. return identical(this, other) ||
  637. (other.runtimeType == runtimeType &&
  638. other is MultiPuzzleError &&
  639. const DeepCollectionEquality().equals(other.message, message));
  640. }
  641. @override
  642. int get hashCode =>
  643. Object.hash(runtimeType, const DeepCollectionEquality().hash(message));
  644. @JsonKey(ignore: true)
  645. @override
  646. $MultiPuzzleErrorCopyWith<MultiPuzzleError> get copyWith =>
  647. _$MultiPuzzleErrorCopyWithImpl<MultiPuzzleError>(this, _$identity);
  648. @override
  649. @optionalTypeArgs
  650. TResult when<TResult extends Object?>(
  651. TResult Function() $default, {
  652. required TResult Function() initializing,
  653. required TResult Function(PuzzleData puzzleData) current,
  654. required TResult Function(PuzzleData puzzleData) solved,
  655. required TResult Function(String? message) error,
  656. }) {
  657. return error(message);
  658. }
  659. @override
  660. @optionalTypeArgs
  661. TResult? whenOrNull<TResult extends Object?>(
  662. TResult Function()? $default, {
  663. TResult Function()? initializing,
  664. TResult Function(PuzzleData puzzleData)? current,
  665. TResult Function(PuzzleData puzzleData)? solved,
  666. TResult Function(String? message)? error,
  667. }) {
  668. return error?.call(message);
  669. }
  670. @override
  671. @optionalTypeArgs
  672. TResult maybeWhen<TResult extends Object?>(
  673. TResult Function()? $default, {
  674. TResult Function()? initializing,
  675. TResult Function(PuzzleData puzzleData)? current,
  676. TResult Function(PuzzleData puzzleData)? solved,
  677. TResult Function(String? message)? error,
  678. required TResult orElse(),
  679. }) {
  680. if (error != null) {
  681. return error(message);
  682. }
  683. return orElse();
  684. }
  685. @override
  686. @optionalTypeArgs
  687. TResult map<TResult extends Object?>(
  688. TResult Function(MultiPuzzleIdle value) $default, {
  689. required TResult Function(MultiPuzzleInitializing value) initializing,
  690. required TResult Function(MultiPuzzleCurrent value) current,
  691. required TResult Function(MultiPuzzleSolved value) solved,
  692. required TResult Function(MultiPuzzleError value) error,
  693. }) {
  694. return error(this);
  695. }
  696. @override
  697. @optionalTypeArgs
  698. TResult? mapOrNull<TResult extends Object?>(
  699. TResult Function(MultiPuzzleIdle value)? $default, {
  700. TResult Function(MultiPuzzleInitializing value)? initializing,
  701. TResult Function(MultiPuzzleCurrent value)? current,
  702. TResult Function(MultiPuzzleSolved value)? solved,
  703. TResult Function(MultiPuzzleError value)? error,
  704. }) {
  705. return error?.call(this);
  706. }
  707. @override
  708. @optionalTypeArgs
  709. TResult maybeMap<TResult extends Object?>(
  710. TResult Function(MultiPuzzleIdle value)? $default, {
  711. TResult Function(MultiPuzzleInitializing value)? initializing,
  712. TResult Function(MultiPuzzleCurrent value)? current,
  713. TResult Function(MultiPuzzleSolved value)? solved,
  714. TResult Function(MultiPuzzleError value)? error,
  715. required TResult orElse(),
  716. }) {
  717. if (error != null) {
  718. return error(this);
  719. }
  720. return orElse();
  721. }
  722. }
  723. abstract class MultiPuzzleError implements MultiPuzzleState {
  724. const factory MultiPuzzleError({String? message}) = _$MultiPuzzleError;
  725. String? get message;
  726. @JsonKey(ignore: true)
  727. $MultiPuzzleErrorCopyWith<MultiPuzzleError> get copyWith =>
  728. throw _privateConstructorUsedError;
  729. }