home_watcher_bloc.freezed.dart 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  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 'home_watcher_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 _$HomeWatcherEventTearOff {
  12. const _$HomeWatcherEventTearOff();
  13. _Started started(String workspaceId) {
  14. return _Started(
  15. workspaceId,
  16. );
  17. }
  18. _Stop stop(String workspaceId) {
  19. return _Stop(
  20. workspaceId,
  21. );
  22. }
  23. }
  24. /// @nodoc
  25. const $HomeWatcherEvent = _$HomeWatcherEventTearOff();
  26. /// @nodoc
  27. mixin _$HomeWatcherEvent {
  28. String get workspaceId => throw _privateConstructorUsedError;
  29. @optionalTypeArgs
  30. TResult when<TResult extends Object?>({
  31. required TResult Function(String workspaceId) started,
  32. required TResult Function(String workspaceId) stop,
  33. }) =>
  34. throw _privateConstructorUsedError;
  35. @optionalTypeArgs
  36. TResult maybeWhen<TResult extends Object?>({
  37. TResult Function(String workspaceId)? started,
  38. TResult Function(String workspaceId)? stop,
  39. required TResult orElse(),
  40. }) =>
  41. throw _privateConstructorUsedError;
  42. @optionalTypeArgs
  43. TResult map<TResult extends Object?>({
  44. required TResult Function(_Started value) started,
  45. required TResult Function(_Stop value) stop,
  46. }) =>
  47. throw _privateConstructorUsedError;
  48. @optionalTypeArgs
  49. TResult maybeMap<TResult extends Object?>({
  50. TResult Function(_Started value)? started,
  51. TResult Function(_Stop value)? stop,
  52. required TResult orElse(),
  53. }) =>
  54. throw _privateConstructorUsedError;
  55. @JsonKey(ignore: true)
  56. $HomeWatcherEventCopyWith<HomeWatcherEvent> get copyWith =>
  57. throw _privateConstructorUsedError;
  58. }
  59. /// @nodoc
  60. abstract class $HomeWatcherEventCopyWith<$Res> {
  61. factory $HomeWatcherEventCopyWith(
  62. HomeWatcherEvent value, $Res Function(HomeWatcherEvent) then) =
  63. _$HomeWatcherEventCopyWithImpl<$Res>;
  64. $Res call({String workspaceId});
  65. }
  66. /// @nodoc
  67. class _$HomeWatcherEventCopyWithImpl<$Res>
  68. implements $HomeWatcherEventCopyWith<$Res> {
  69. _$HomeWatcherEventCopyWithImpl(this._value, this._then);
  70. final HomeWatcherEvent _value;
  71. // ignore: unused_field
  72. final $Res Function(HomeWatcherEvent) _then;
  73. @override
  74. $Res call({
  75. Object? workspaceId = freezed,
  76. }) {
  77. return _then(_value.copyWith(
  78. workspaceId: workspaceId == freezed
  79. ? _value.workspaceId
  80. : workspaceId // ignore: cast_nullable_to_non_nullable
  81. as String,
  82. ));
  83. }
  84. }
  85. /// @nodoc
  86. abstract class _$StartedCopyWith<$Res>
  87. implements $HomeWatcherEventCopyWith<$Res> {
  88. factory _$StartedCopyWith(_Started value, $Res Function(_Started) then) =
  89. __$StartedCopyWithImpl<$Res>;
  90. @override
  91. $Res call({String workspaceId});
  92. }
  93. /// @nodoc
  94. class __$StartedCopyWithImpl<$Res> extends _$HomeWatcherEventCopyWithImpl<$Res>
  95. implements _$StartedCopyWith<$Res> {
  96. __$StartedCopyWithImpl(_Started _value, $Res Function(_Started) _then)
  97. : super(_value, (v) => _then(v as _Started));
  98. @override
  99. _Started get _value => super._value as _Started;
  100. @override
  101. $Res call({
  102. Object? workspaceId = freezed,
  103. }) {
  104. return _then(_Started(
  105. workspaceId == freezed
  106. ? _value.workspaceId
  107. : workspaceId // ignore: cast_nullable_to_non_nullable
  108. as String,
  109. ));
  110. }
  111. }
  112. /// @nodoc
  113. class _$_Started implements _Started {
  114. const _$_Started(this.workspaceId);
  115. @override
  116. final String workspaceId;
  117. @override
  118. String toString() {
  119. return 'HomeWatcherEvent.started(workspaceId: $workspaceId)';
  120. }
  121. @override
  122. bool operator ==(dynamic other) {
  123. return identical(this, other) ||
  124. (other is _Started &&
  125. (identical(other.workspaceId, workspaceId) ||
  126. const DeepCollectionEquality()
  127. .equals(other.workspaceId, workspaceId)));
  128. }
  129. @override
  130. int get hashCode =>
  131. runtimeType.hashCode ^ const DeepCollectionEquality().hash(workspaceId);
  132. @JsonKey(ignore: true)
  133. @override
  134. _$StartedCopyWith<_Started> get copyWith =>
  135. __$StartedCopyWithImpl<_Started>(this, _$identity);
  136. @override
  137. @optionalTypeArgs
  138. TResult when<TResult extends Object?>({
  139. required TResult Function(String workspaceId) started,
  140. required TResult Function(String workspaceId) stop,
  141. }) {
  142. return started(workspaceId);
  143. }
  144. @override
  145. @optionalTypeArgs
  146. TResult maybeWhen<TResult extends Object?>({
  147. TResult Function(String workspaceId)? started,
  148. TResult Function(String workspaceId)? stop,
  149. required TResult orElse(),
  150. }) {
  151. if (started != null) {
  152. return started(workspaceId);
  153. }
  154. return orElse();
  155. }
  156. @override
  157. @optionalTypeArgs
  158. TResult map<TResult extends Object?>({
  159. required TResult Function(_Started value) started,
  160. required TResult Function(_Stop value) stop,
  161. }) {
  162. return started(this);
  163. }
  164. @override
  165. @optionalTypeArgs
  166. TResult maybeMap<TResult extends Object?>({
  167. TResult Function(_Started value)? started,
  168. TResult Function(_Stop value)? stop,
  169. required TResult orElse(),
  170. }) {
  171. if (started != null) {
  172. return started(this);
  173. }
  174. return orElse();
  175. }
  176. }
  177. abstract class _Started implements HomeWatcherEvent {
  178. const factory _Started(String workspaceId) = _$_Started;
  179. @override
  180. String get workspaceId => throw _privateConstructorUsedError;
  181. @override
  182. @JsonKey(ignore: true)
  183. _$StartedCopyWith<_Started> get copyWith =>
  184. throw _privateConstructorUsedError;
  185. }
  186. /// @nodoc
  187. abstract class _$StopCopyWith<$Res> implements $HomeWatcherEventCopyWith<$Res> {
  188. factory _$StopCopyWith(_Stop value, $Res Function(_Stop) then) =
  189. __$StopCopyWithImpl<$Res>;
  190. @override
  191. $Res call({String workspaceId});
  192. }
  193. /// @nodoc
  194. class __$StopCopyWithImpl<$Res> extends _$HomeWatcherEventCopyWithImpl<$Res>
  195. implements _$StopCopyWith<$Res> {
  196. __$StopCopyWithImpl(_Stop _value, $Res Function(_Stop) _then)
  197. : super(_value, (v) => _then(v as _Stop));
  198. @override
  199. _Stop get _value => super._value as _Stop;
  200. @override
  201. $Res call({
  202. Object? workspaceId = freezed,
  203. }) {
  204. return _then(_Stop(
  205. workspaceId == freezed
  206. ? _value.workspaceId
  207. : workspaceId // ignore: cast_nullable_to_non_nullable
  208. as String,
  209. ));
  210. }
  211. }
  212. /// @nodoc
  213. class _$_Stop implements _Stop {
  214. const _$_Stop(this.workspaceId);
  215. @override
  216. final String workspaceId;
  217. @override
  218. String toString() {
  219. return 'HomeWatcherEvent.stop(workspaceId: $workspaceId)';
  220. }
  221. @override
  222. bool operator ==(dynamic other) {
  223. return identical(this, other) ||
  224. (other is _Stop &&
  225. (identical(other.workspaceId, workspaceId) ||
  226. const DeepCollectionEquality()
  227. .equals(other.workspaceId, workspaceId)));
  228. }
  229. @override
  230. int get hashCode =>
  231. runtimeType.hashCode ^ const DeepCollectionEquality().hash(workspaceId);
  232. @JsonKey(ignore: true)
  233. @override
  234. _$StopCopyWith<_Stop> get copyWith =>
  235. __$StopCopyWithImpl<_Stop>(this, _$identity);
  236. @override
  237. @optionalTypeArgs
  238. TResult when<TResult extends Object?>({
  239. required TResult Function(String workspaceId) started,
  240. required TResult Function(String workspaceId) stop,
  241. }) {
  242. return stop(workspaceId);
  243. }
  244. @override
  245. @optionalTypeArgs
  246. TResult maybeWhen<TResult extends Object?>({
  247. TResult Function(String workspaceId)? started,
  248. TResult Function(String workspaceId)? stop,
  249. required TResult orElse(),
  250. }) {
  251. if (stop != null) {
  252. return stop(workspaceId);
  253. }
  254. return orElse();
  255. }
  256. @override
  257. @optionalTypeArgs
  258. TResult map<TResult extends Object?>({
  259. required TResult Function(_Started value) started,
  260. required TResult Function(_Stop value) stop,
  261. }) {
  262. return stop(this);
  263. }
  264. @override
  265. @optionalTypeArgs
  266. TResult maybeMap<TResult extends Object?>({
  267. TResult Function(_Started value)? started,
  268. TResult Function(_Stop value)? stop,
  269. required TResult orElse(),
  270. }) {
  271. if (stop != null) {
  272. return stop(this);
  273. }
  274. return orElse();
  275. }
  276. }
  277. abstract class _Stop implements HomeWatcherEvent {
  278. const factory _Stop(String workspaceId) = _$_Stop;
  279. @override
  280. String get workspaceId => throw _privateConstructorUsedError;
  281. @override
  282. @JsonKey(ignore: true)
  283. _$StopCopyWith<_Stop> get copyWith => throw _privateConstructorUsedError;
  284. }
  285. /// @nodoc
  286. class _$HomeWatcherStateTearOff {
  287. const _$HomeWatcherStateTearOff();
  288. _Initial initial() {
  289. return const _Initial();
  290. }
  291. _Loading loading() {
  292. return const _Loading();
  293. }
  294. }
  295. /// @nodoc
  296. const $HomeWatcherState = _$HomeWatcherStateTearOff();
  297. /// @nodoc
  298. mixin _$HomeWatcherState {
  299. @optionalTypeArgs
  300. TResult when<TResult extends Object?>({
  301. required TResult Function() initial,
  302. required TResult Function() loading,
  303. }) =>
  304. throw _privateConstructorUsedError;
  305. @optionalTypeArgs
  306. TResult maybeWhen<TResult extends Object?>({
  307. TResult Function()? initial,
  308. TResult Function()? loading,
  309. required TResult orElse(),
  310. }) =>
  311. throw _privateConstructorUsedError;
  312. @optionalTypeArgs
  313. TResult map<TResult extends Object?>({
  314. required TResult Function(_Initial value) initial,
  315. required TResult Function(_Loading value) loading,
  316. }) =>
  317. throw _privateConstructorUsedError;
  318. @optionalTypeArgs
  319. TResult maybeMap<TResult extends Object?>({
  320. TResult Function(_Initial value)? initial,
  321. TResult Function(_Loading value)? loading,
  322. required TResult orElse(),
  323. }) =>
  324. throw _privateConstructorUsedError;
  325. }
  326. /// @nodoc
  327. abstract class $HomeWatcherStateCopyWith<$Res> {
  328. factory $HomeWatcherStateCopyWith(
  329. HomeWatcherState value, $Res Function(HomeWatcherState) then) =
  330. _$HomeWatcherStateCopyWithImpl<$Res>;
  331. }
  332. /// @nodoc
  333. class _$HomeWatcherStateCopyWithImpl<$Res>
  334. implements $HomeWatcherStateCopyWith<$Res> {
  335. _$HomeWatcherStateCopyWithImpl(this._value, this._then);
  336. final HomeWatcherState _value;
  337. // ignore: unused_field
  338. final $Res Function(HomeWatcherState) _then;
  339. }
  340. /// @nodoc
  341. abstract class _$InitialCopyWith<$Res> {
  342. factory _$InitialCopyWith(_Initial value, $Res Function(_Initial) then) =
  343. __$InitialCopyWithImpl<$Res>;
  344. }
  345. /// @nodoc
  346. class __$InitialCopyWithImpl<$Res> extends _$HomeWatcherStateCopyWithImpl<$Res>
  347. implements _$InitialCopyWith<$Res> {
  348. __$InitialCopyWithImpl(_Initial _value, $Res Function(_Initial) _then)
  349. : super(_value, (v) => _then(v as _Initial));
  350. @override
  351. _Initial get _value => super._value as _Initial;
  352. }
  353. /// @nodoc
  354. class _$_Initial implements _Initial {
  355. const _$_Initial();
  356. @override
  357. String toString() {
  358. return 'HomeWatcherState.initial()';
  359. }
  360. @override
  361. bool operator ==(dynamic other) {
  362. return identical(this, other) || (other is _Initial);
  363. }
  364. @override
  365. int get hashCode => runtimeType.hashCode;
  366. @override
  367. @optionalTypeArgs
  368. TResult when<TResult extends Object?>({
  369. required TResult Function() initial,
  370. required TResult Function() loading,
  371. }) {
  372. return initial();
  373. }
  374. @override
  375. @optionalTypeArgs
  376. TResult maybeWhen<TResult extends Object?>({
  377. TResult Function()? initial,
  378. TResult Function()? loading,
  379. required TResult orElse(),
  380. }) {
  381. if (initial != null) {
  382. return initial();
  383. }
  384. return orElse();
  385. }
  386. @override
  387. @optionalTypeArgs
  388. TResult map<TResult extends Object?>({
  389. required TResult Function(_Initial value) initial,
  390. required TResult Function(_Loading value) loading,
  391. }) {
  392. return initial(this);
  393. }
  394. @override
  395. @optionalTypeArgs
  396. TResult maybeMap<TResult extends Object?>({
  397. TResult Function(_Initial value)? initial,
  398. TResult Function(_Loading value)? loading,
  399. required TResult orElse(),
  400. }) {
  401. if (initial != null) {
  402. return initial(this);
  403. }
  404. return orElse();
  405. }
  406. }
  407. abstract class _Initial implements HomeWatcherState {
  408. const factory _Initial() = _$_Initial;
  409. }
  410. /// @nodoc
  411. abstract class _$LoadingCopyWith<$Res> {
  412. factory _$LoadingCopyWith(_Loading value, $Res Function(_Loading) then) =
  413. __$LoadingCopyWithImpl<$Res>;
  414. }
  415. /// @nodoc
  416. class __$LoadingCopyWithImpl<$Res> extends _$HomeWatcherStateCopyWithImpl<$Res>
  417. implements _$LoadingCopyWith<$Res> {
  418. __$LoadingCopyWithImpl(_Loading _value, $Res Function(_Loading) _then)
  419. : super(_value, (v) => _then(v as _Loading));
  420. @override
  421. _Loading get _value => super._value as _Loading;
  422. }
  423. /// @nodoc
  424. class _$_Loading implements _Loading {
  425. const _$_Loading();
  426. @override
  427. String toString() {
  428. return 'HomeWatcherState.loading()';
  429. }
  430. @override
  431. bool operator ==(dynamic other) {
  432. return identical(this, other) || (other is _Loading);
  433. }
  434. @override
  435. int get hashCode => runtimeType.hashCode;
  436. @override
  437. @optionalTypeArgs
  438. TResult when<TResult extends Object?>({
  439. required TResult Function() initial,
  440. required TResult Function() loading,
  441. }) {
  442. return loading();
  443. }
  444. @override
  445. @optionalTypeArgs
  446. TResult maybeWhen<TResult extends Object?>({
  447. TResult Function()? initial,
  448. TResult Function()? loading,
  449. required TResult orElse(),
  450. }) {
  451. if (loading != null) {
  452. return loading();
  453. }
  454. return orElse();
  455. }
  456. @override
  457. @optionalTypeArgs
  458. TResult map<TResult extends Object?>({
  459. required TResult Function(_Initial value) initial,
  460. required TResult Function(_Loading value) loading,
  461. }) {
  462. return loading(this);
  463. }
  464. @override
  465. @optionalTypeArgs
  466. TResult maybeMap<TResult extends Object?>({
  467. TResult Function(_Initial value)? initial,
  468. TResult Function(_Loading value)? loading,
  469. required TResult orElse(),
  470. }) {
  471. if (loading != null) {
  472. return loading(this);
  473. }
  474. return orElse();
  475. }
  476. }
  477. abstract class _Loading implements HomeWatcherState {
  478. const factory _Loading() = _$_Loading;
  479. }