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.

687 lines
21 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 'image_splitter_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 _$ImageSplitterStateTearOff {
  14. const _$ImageSplitterStateTearOff();
  15. ImageSplitterIdle call() {
  16. return const ImageSplitterIdle();
  17. }
  18. ImageSplitterGenerating generating() {
  19. return const ImageSplitterGenerating();
  20. }
  21. ImageSplitterComplete complete(
  22. Image image, List<Image> images, PaletteGenerator palette) {
  23. return ImageSplitterComplete(
  24. image,
  25. images,
  26. palette,
  27. );
  28. }
  29. ImageSplitterError error({String? message}) {
  30. return ImageSplitterError(
  31. message: message,
  32. );
  33. }
  34. }
  35. /// @nodoc
  36. const $ImageSplitterState = _$ImageSplitterStateTearOff();
  37. /// @nodoc
  38. mixin _$ImageSplitterState {
  39. @optionalTypeArgs
  40. TResult when<TResult extends Object?>(
  41. TResult Function() $default, {
  42. required TResult Function() generating,
  43. required TResult Function(
  44. Image image, List<Image> images, PaletteGenerator palette)
  45. complete,
  46. required TResult Function(String? message) error,
  47. }) =>
  48. throw _privateConstructorUsedError;
  49. @optionalTypeArgs
  50. TResult? whenOrNull<TResult extends Object?>(
  51. TResult Function()? $default, {
  52. TResult Function()? generating,
  53. TResult Function(Image image, List<Image> images, PaletteGenerator palette)?
  54. complete,
  55. TResult Function(String? message)? error,
  56. }) =>
  57. throw _privateConstructorUsedError;
  58. @optionalTypeArgs
  59. TResult maybeWhen<TResult extends Object?>(
  60. TResult Function()? $default, {
  61. TResult Function()? generating,
  62. TResult Function(Image image, List<Image> images, PaletteGenerator palette)?
  63. complete,
  64. TResult Function(String? message)? error,
  65. required TResult orElse(),
  66. }) =>
  67. throw _privateConstructorUsedError;
  68. @optionalTypeArgs
  69. TResult map<TResult extends Object?>(
  70. TResult Function(ImageSplitterIdle value) $default, {
  71. required TResult Function(ImageSplitterGenerating value) generating,
  72. required TResult Function(ImageSplitterComplete value) complete,
  73. required TResult Function(ImageSplitterError value) error,
  74. }) =>
  75. throw _privateConstructorUsedError;
  76. @optionalTypeArgs
  77. TResult? mapOrNull<TResult extends Object?>(
  78. TResult Function(ImageSplitterIdle value)? $default, {
  79. TResult Function(ImageSplitterGenerating value)? generating,
  80. TResult Function(ImageSplitterComplete value)? complete,
  81. TResult Function(ImageSplitterError value)? error,
  82. }) =>
  83. throw _privateConstructorUsedError;
  84. @optionalTypeArgs
  85. TResult maybeMap<TResult extends Object?>(
  86. TResult Function(ImageSplitterIdle value)? $default, {
  87. TResult Function(ImageSplitterGenerating value)? generating,
  88. TResult Function(ImageSplitterComplete value)? complete,
  89. TResult Function(ImageSplitterError value)? error,
  90. required TResult orElse(),
  91. }) =>
  92. throw _privateConstructorUsedError;
  93. }
  94. /// @nodoc
  95. abstract class $ImageSplitterStateCopyWith<$Res> {
  96. factory $ImageSplitterStateCopyWith(
  97. ImageSplitterState value, $Res Function(ImageSplitterState) then) =
  98. _$ImageSplitterStateCopyWithImpl<$Res>;
  99. }
  100. /// @nodoc
  101. class _$ImageSplitterStateCopyWithImpl<$Res>
  102. implements $ImageSplitterStateCopyWith<$Res> {
  103. _$ImageSplitterStateCopyWithImpl(this._value, this._then);
  104. final ImageSplitterState _value;
  105. // ignore: unused_field
  106. final $Res Function(ImageSplitterState) _then;
  107. }
  108. /// @nodoc
  109. abstract class $ImageSplitterIdleCopyWith<$Res> {
  110. factory $ImageSplitterIdleCopyWith(
  111. ImageSplitterIdle value, $Res Function(ImageSplitterIdle) then) =
  112. _$ImageSplitterIdleCopyWithImpl<$Res>;
  113. }
  114. /// @nodoc
  115. class _$ImageSplitterIdleCopyWithImpl<$Res>
  116. extends _$ImageSplitterStateCopyWithImpl<$Res>
  117. implements $ImageSplitterIdleCopyWith<$Res> {
  118. _$ImageSplitterIdleCopyWithImpl(
  119. ImageSplitterIdle _value, $Res Function(ImageSplitterIdle) _then)
  120. : super(_value, (v) => _then(v as ImageSplitterIdle));
  121. @override
  122. ImageSplitterIdle get _value => super._value as ImageSplitterIdle;
  123. }
  124. /// @nodoc
  125. class _$ImageSplitterIdle implements ImageSplitterIdle {
  126. const _$ImageSplitterIdle();
  127. @override
  128. String toString() {
  129. return 'ImageSplitterState()';
  130. }
  131. @override
  132. bool operator ==(dynamic other) {
  133. return identical(this, other) ||
  134. (other.runtimeType == runtimeType && other is ImageSplitterIdle);
  135. }
  136. @override
  137. int get hashCode => runtimeType.hashCode;
  138. @override
  139. @optionalTypeArgs
  140. TResult when<TResult extends Object?>(
  141. TResult Function() $default, {
  142. required TResult Function() generating,
  143. required TResult Function(
  144. Image image, List<Image> images, PaletteGenerator palette)
  145. complete,
  146. required TResult Function(String? message) error,
  147. }) {
  148. return $default();
  149. }
  150. @override
  151. @optionalTypeArgs
  152. TResult? whenOrNull<TResult extends Object?>(
  153. TResult Function()? $default, {
  154. TResult Function()? generating,
  155. TResult Function(Image image, List<Image> images, PaletteGenerator palette)?
  156. complete,
  157. TResult Function(String? message)? error,
  158. }) {
  159. return $default?.call();
  160. }
  161. @override
  162. @optionalTypeArgs
  163. TResult maybeWhen<TResult extends Object?>(
  164. TResult Function()? $default, {
  165. TResult Function()? generating,
  166. TResult Function(Image image, List<Image> images, PaletteGenerator palette)?
  167. complete,
  168. TResult Function(String? message)? error,
  169. required TResult orElse(),
  170. }) {
  171. if ($default != null) {
  172. return $default();
  173. }
  174. return orElse();
  175. }
  176. @override
  177. @optionalTypeArgs
  178. TResult map<TResult extends Object?>(
  179. TResult Function(ImageSplitterIdle value) $default, {
  180. required TResult Function(ImageSplitterGenerating value) generating,
  181. required TResult Function(ImageSplitterComplete value) complete,
  182. required TResult Function(ImageSplitterError value) error,
  183. }) {
  184. return $default(this);
  185. }
  186. @override
  187. @optionalTypeArgs
  188. TResult? mapOrNull<TResult extends Object?>(
  189. TResult Function(ImageSplitterIdle value)? $default, {
  190. TResult Function(ImageSplitterGenerating value)? generating,
  191. TResult Function(ImageSplitterComplete value)? complete,
  192. TResult Function(ImageSplitterError value)? error,
  193. }) {
  194. return $default?.call(this);
  195. }
  196. @override
  197. @optionalTypeArgs
  198. TResult maybeMap<TResult extends Object?>(
  199. TResult Function(ImageSplitterIdle value)? $default, {
  200. TResult Function(ImageSplitterGenerating value)? generating,
  201. TResult Function(ImageSplitterComplete value)? complete,
  202. TResult Function(ImageSplitterError value)? error,
  203. required TResult orElse(),
  204. }) {
  205. if ($default != null) {
  206. return $default(this);
  207. }
  208. return orElse();
  209. }
  210. }
  211. abstract class ImageSplitterIdle implements ImageSplitterState {
  212. const factory ImageSplitterIdle() = _$ImageSplitterIdle;
  213. }
  214. /// @nodoc
  215. abstract class $ImageSplitterGeneratingCopyWith<$Res> {
  216. factory $ImageSplitterGeneratingCopyWith(ImageSplitterGenerating value,
  217. $Res Function(ImageSplitterGenerating) then) =
  218. _$ImageSplitterGeneratingCopyWithImpl<$Res>;
  219. }
  220. /// @nodoc
  221. class _$ImageSplitterGeneratingCopyWithImpl<$Res>
  222. extends _$ImageSplitterStateCopyWithImpl<$Res>
  223. implements $ImageSplitterGeneratingCopyWith<$Res> {
  224. _$ImageSplitterGeneratingCopyWithImpl(ImageSplitterGenerating _value,
  225. $Res Function(ImageSplitterGenerating) _then)
  226. : super(_value, (v) => _then(v as ImageSplitterGenerating));
  227. @override
  228. ImageSplitterGenerating get _value => super._value as ImageSplitterGenerating;
  229. }
  230. /// @nodoc
  231. class _$ImageSplitterGenerating implements ImageSplitterGenerating {
  232. const _$ImageSplitterGenerating();
  233. @override
  234. String toString() {
  235. return 'ImageSplitterState.generating()';
  236. }
  237. @override
  238. bool operator ==(dynamic other) {
  239. return identical(this, other) ||
  240. (other.runtimeType == runtimeType && other is ImageSplitterGenerating);
  241. }
  242. @override
  243. int get hashCode => runtimeType.hashCode;
  244. @override
  245. @optionalTypeArgs
  246. TResult when<TResult extends Object?>(
  247. TResult Function() $default, {
  248. required TResult Function() generating,
  249. required TResult Function(
  250. Image image, List<Image> images, PaletteGenerator palette)
  251. complete,
  252. required TResult Function(String? message) error,
  253. }) {
  254. return generating();
  255. }
  256. @override
  257. @optionalTypeArgs
  258. TResult? whenOrNull<TResult extends Object?>(
  259. TResult Function()? $default, {
  260. TResult Function()? generating,
  261. TResult Function(Image image, List<Image> images, PaletteGenerator palette)?
  262. complete,
  263. TResult Function(String? message)? error,
  264. }) {
  265. return generating?.call();
  266. }
  267. @override
  268. @optionalTypeArgs
  269. TResult maybeWhen<TResult extends Object?>(
  270. TResult Function()? $default, {
  271. TResult Function()? generating,
  272. TResult Function(Image image, List<Image> images, PaletteGenerator palette)?
  273. complete,
  274. TResult Function(String? message)? error,
  275. required TResult orElse(),
  276. }) {
  277. if (generating != null) {
  278. return generating();
  279. }
  280. return orElse();
  281. }
  282. @override
  283. @optionalTypeArgs
  284. TResult map<TResult extends Object?>(
  285. TResult Function(ImageSplitterIdle value) $default, {
  286. required TResult Function(ImageSplitterGenerating value) generating,
  287. required TResult Function(ImageSplitterComplete value) complete,
  288. required TResult Function(ImageSplitterError value) error,
  289. }) {
  290. return generating(this);
  291. }
  292. @override
  293. @optionalTypeArgs
  294. TResult? mapOrNull<TResult extends Object?>(
  295. TResult Function(ImageSplitterIdle value)? $default, {
  296. TResult Function(ImageSplitterGenerating value)? generating,
  297. TResult Function(ImageSplitterComplete value)? complete,
  298. TResult Function(ImageSplitterError value)? error,
  299. }) {
  300. return generating?.call(this);
  301. }
  302. @override
  303. @optionalTypeArgs
  304. TResult maybeMap<TResult extends Object?>(
  305. TResult Function(ImageSplitterIdle value)? $default, {
  306. TResult Function(ImageSplitterGenerating value)? generating,
  307. TResult Function(ImageSplitterComplete value)? complete,
  308. TResult Function(ImageSplitterError value)? error,
  309. required TResult orElse(),
  310. }) {
  311. if (generating != null) {
  312. return generating(this);
  313. }
  314. return orElse();
  315. }
  316. }
  317. abstract class ImageSplitterGenerating implements ImageSplitterState {
  318. const factory ImageSplitterGenerating() = _$ImageSplitterGenerating;
  319. }
  320. /// @nodoc
  321. abstract class $ImageSplitterCompleteCopyWith<$Res> {
  322. factory $ImageSplitterCompleteCopyWith(ImageSplitterComplete value,
  323. $Res Function(ImageSplitterComplete) then) =
  324. _$ImageSplitterCompleteCopyWithImpl<$Res>;
  325. $Res call({Image image, List<Image> images, PaletteGenerator palette});
  326. }
  327. /// @nodoc
  328. class _$ImageSplitterCompleteCopyWithImpl<$Res>
  329. extends _$ImageSplitterStateCopyWithImpl<$Res>
  330. implements $ImageSplitterCompleteCopyWith<$Res> {
  331. _$ImageSplitterCompleteCopyWithImpl(
  332. ImageSplitterComplete _value, $Res Function(ImageSplitterComplete) _then)
  333. : super(_value, (v) => _then(v as ImageSplitterComplete));
  334. @override
  335. ImageSplitterComplete get _value => super._value as ImageSplitterComplete;
  336. @override
  337. $Res call({
  338. Object? image = freezed,
  339. Object? images = freezed,
  340. Object? palette = freezed,
  341. }) {
  342. return _then(ImageSplitterComplete(
  343. image == freezed
  344. ? _value.image
  345. : image // ignore: cast_nullable_to_non_nullable
  346. as Image,
  347. images == freezed
  348. ? _value.images
  349. : images // ignore: cast_nullable_to_non_nullable
  350. as List<Image>,
  351. palette == freezed
  352. ? _value.palette
  353. : palette // ignore: cast_nullable_to_non_nullable
  354. as PaletteGenerator,
  355. ));
  356. }
  357. }
  358. /// @nodoc
  359. class _$ImageSplitterComplete implements ImageSplitterComplete {
  360. const _$ImageSplitterComplete(this.image, this.images, this.palette);
  361. @override
  362. final Image image;
  363. @override
  364. final List<Image> images;
  365. @override
  366. final PaletteGenerator palette;
  367. @override
  368. String toString() {
  369. return 'ImageSplitterState.complete(image: $image, images: $images, palette: $palette)';
  370. }
  371. @override
  372. bool operator ==(dynamic other) {
  373. return identical(this, other) ||
  374. (other.runtimeType == runtimeType &&
  375. other is ImageSplitterComplete &&
  376. const DeepCollectionEquality().equals(other.image, image) &&
  377. const DeepCollectionEquality().equals(other.images, images) &&
  378. const DeepCollectionEquality().equals(other.palette, palette));
  379. }
  380. @override
  381. int get hashCode => Object.hash(
  382. runtimeType,
  383. const DeepCollectionEquality().hash(image),
  384. const DeepCollectionEquality().hash(images),
  385. const DeepCollectionEquality().hash(palette));
  386. @JsonKey(ignore: true)
  387. @override
  388. $ImageSplitterCompleteCopyWith<ImageSplitterComplete> get copyWith =>
  389. _$ImageSplitterCompleteCopyWithImpl<ImageSplitterComplete>(
  390. this, _$identity);
  391. @override
  392. @optionalTypeArgs
  393. TResult when<TResult extends Object?>(
  394. TResult Function() $default, {
  395. required TResult Function() generating,
  396. required TResult Function(
  397. Image image, List<Image> images, PaletteGenerator palette)
  398. complete,
  399. required TResult Function(String? message) error,
  400. }) {
  401. return complete(image, images, palette);
  402. }
  403. @override
  404. @optionalTypeArgs
  405. TResult? whenOrNull<TResult extends Object?>(
  406. TResult Function()? $default, {
  407. TResult Function()? generating,
  408. TResult Function(Image image, List<Image> images, PaletteGenerator palette)?
  409. complete,
  410. TResult Function(String? message)? error,
  411. }) {
  412. return complete?.call(image, images, palette);
  413. }
  414. @override
  415. @optionalTypeArgs
  416. TResult maybeWhen<TResult extends Object?>(
  417. TResult Function()? $default, {
  418. TResult Function()? generating,
  419. TResult Function(Image image, List<Image> images, PaletteGenerator palette)?
  420. complete,
  421. TResult Function(String? message)? error,
  422. required TResult orElse(),
  423. }) {
  424. if (complete != null) {
  425. return complete(image, images, palette);
  426. }
  427. return orElse();
  428. }
  429. @override
  430. @optionalTypeArgs
  431. TResult map<TResult extends Object?>(
  432. TResult Function(ImageSplitterIdle value) $default, {
  433. required TResult Function(ImageSplitterGenerating value) generating,
  434. required TResult Function(ImageSplitterComplete value) complete,
  435. required TResult Function(ImageSplitterError value) error,
  436. }) {
  437. return complete(this);
  438. }
  439. @override
  440. @optionalTypeArgs
  441. TResult? mapOrNull<TResult extends Object?>(
  442. TResult Function(ImageSplitterIdle value)? $default, {
  443. TResult Function(ImageSplitterGenerating value)? generating,
  444. TResult Function(ImageSplitterComplete value)? complete,
  445. TResult Function(ImageSplitterError value)? error,
  446. }) {
  447. return complete?.call(this);
  448. }
  449. @override
  450. @optionalTypeArgs
  451. TResult maybeMap<TResult extends Object?>(
  452. TResult Function(ImageSplitterIdle value)? $default, {
  453. TResult Function(ImageSplitterGenerating value)? generating,
  454. TResult Function(ImageSplitterComplete value)? complete,
  455. TResult Function(ImageSplitterError value)? error,
  456. required TResult orElse(),
  457. }) {
  458. if (complete != null) {
  459. return complete(this);
  460. }
  461. return orElse();
  462. }
  463. }
  464. abstract class ImageSplitterComplete implements ImageSplitterState {
  465. const factory ImageSplitterComplete(
  466. Image image, List<Image> images, PaletteGenerator palette) =
  467. _$ImageSplitterComplete;
  468. Image get image;
  469. List<Image> get images;
  470. PaletteGenerator get palette;
  471. @JsonKey(ignore: true)
  472. $ImageSplitterCompleteCopyWith<ImageSplitterComplete> get copyWith =>
  473. throw _privateConstructorUsedError;
  474. }
  475. /// @nodoc
  476. abstract class $ImageSplitterErrorCopyWith<$Res> {
  477. factory $ImageSplitterErrorCopyWith(
  478. ImageSplitterError value, $Res Function(ImageSplitterError) then) =
  479. _$ImageSplitterErrorCopyWithImpl<$Res>;
  480. $Res call({String? message});
  481. }
  482. /// @nodoc
  483. class _$ImageSplitterErrorCopyWithImpl<$Res>
  484. extends _$ImageSplitterStateCopyWithImpl<$Res>
  485. implements $ImageSplitterErrorCopyWith<$Res> {
  486. _$ImageSplitterErrorCopyWithImpl(
  487. ImageSplitterError _value, $Res Function(ImageSplitterError) _then)
  488. : super(_value, (v) => _then(v as ImageSplitterError));
  489. @override
  490. ImageSplitterError get _value => super._value as ImageSplitterError;
  491. @override
  492. $Res call({
  493. Object? message = freezed,
  494. }) {
  495. return _then(ImageSplitterError(
  496. message: message == freezed
  497. ? _value.message
  498. : message // ignore: cast_nullable_to_non_nullable
  499. as String?,
  500. ));
  501. }
  502. }
  503. /// @nodoc
  504. class _$ImageSplitterError implements ImageSplitterError {
  505. const _$ImageSplitterError({this.message});
  506. @override
  507. final String? message;
  508. @override
  509. String toString() {
  510. return 'ImageSplitterState.error(message: $message)';
  511. }
  512. @override
  513. bool operator ==(dynamic other) {
  514. return identical(this, other) ||
  515. (other.runtimeType == runtimeType &&
  516. other is ImageSplitterError &&
  517. const DeepCollectionEquality().equals(other.message, message));
  518. }
  519. @override
  520. int get hashCode =>
  521. Object.hash(runtimeType, const DeepCollectionEquality().hash(message));
  522. @JsonKey(ignore: true)
  523. @override
  524. $ImageSplitterErrorCopyWith<ImageSplitterError> get copyWith =>
  525. _$ImageSplitterErrorCopyWithImpl<ImageSplitterError>(this, _$identity);
  526. @override
  527. @optionalTypeArgs
  528. TResult when<TResult extends Object?>(
  529. TResult Function() $default, {
  530. required TResult Function() generating,
  531. required TResult Function(
  532. Image image, List<Image> images, PaletteGenerator palette)
  533. complete,
  534. required TResult Function(String? message) error,
  535. }) {
  536. return error(message);
  537. }
  538. @override
  539. @optionalTypeArgs
  540. TResult? whenOrNull<TResult extends Object?>(
  541. TResult Function()? $default, {
  542. TResult Function()? generating,
  543. TResult Function(Image image, List<Image> images, PaletteGenerator palette)?
  544. complete,
  545. TResult Function(String? message)? error,
  546. }) {
  547. return error?.call(message);
  548. }
  549. @override
  550. @optionalTypeArgs
  551. TResult maybeWhen<TResult extends Object?>(
  552. TResult Function()? $default, {
  553. TResult Function()? generating,
  554. TResult Function(Image image, List<Image> images, PaletteGenerator palette)?
  555. complete,
  556. TResult Function(String? message)? error,
  557. required TResult orElse(),
  558. }) {
  559. if (error != null) {
  560. return error(message);
  561. }
  562. return orElse();
  563. }
  564. @override
  565. @optionalTypeArgs
  566. TResult map<TResult extends Object?>(
  567. TResult Function(ImageSplitterIdle value) $default, {
  568. required TResult Function(ImageSplitterGenerating value) generating,
  569. required TResult Function(ImageSplitterComplete value) complete,
  570. required TResult Function(ImageSplitterError value) error,
  571. }) {
  572. return error(this);
  573. }
  574. @override
  575. @optionalTypeArgs
  576. TResult? mapOrNull<TResult extends Object?>(
  577. TResult Function(ImageSplitterIdle value)? $default, {
  578. TResult Function(ImageSplitterGenerating value)? generating,
  579. TResult Function(ImageSplitterComplete value)? complete,
  580. TResult Function(ImageSplitterError value)? error,
  581. }) {
  582. return error?.call(this);
  583. }
  584. @override
  585. @optionalTypeArgs
  586. TResult maybeMap<TResult extends Object?>(
  587. TResult Function(ImageSplitterIdle value)? $default, {
  588. TResult Function(ImageSplitterGenerating value)? generating,
  589. TResult Function(ImageSplitterComplete value)? complete,
  590. TResult Function(ImageSplitterError value)? error,
  591. required TResult orElse(),
  592. }) {
  593. if (error != null) {
  594. return error(this);
  595. }
  596. return orElse();
  597. }
  598. }
  599. abstract class ImageSplitterError implements ImageSplitterState {
  600. const factory ImageSplitterError({String? message}) = _$ImageSplitterError;
  601. String? get message;
  602. @JsonKey(ignore: true)
  603. $ImageSplitterErrorCopyWith<ImageSplitterError> get copyWith =>
  604. throw _privateConstructorUsedError;
  605. }