trash_bloc.freezed.dart 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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, invalid_annotation_target
  3. part of 'trash_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 _$TrashEventTearOff {
  12. const _$TrashEventTearOff();
  13. Initial initial() {
  14. return const Initial();
  15. }
  16. }
  17. /// @nodoc
  18. const $TrashEvent = _$TrashEventTearOff();
  19. /// @nodoc
  20. mixin _$TrashEvent {
  21. @optionalTypeArgs
  22. TResult when<TResult extends Object?>({
  23. required TResult Function() initial,
  24. }) =>
  25. throw _privateConstructorUsedError;
  26. @optionalTypeArgs
  27. TResult maybeWhen<TResult extends Object?>({
  28. TResult Function()? initial,
  29. required TResult orElse(),
  30. }) =>
  31. throw _privateConstructorUsedError;
  32. @optionalTypeArgs
  33. TResult map<TResult extends Object?>({
  34. required TResult Function(Initial value) initial,
  35. }) =>
  36. throw _privateConstructorUsedError;
  37. @optionalTypeArgs
  38. TResult maybeMap<TResult extends Object?>({
  39. TResult Function(Initial value)? initial,
  40. required TResult orElse(),
  41. }) =>
  42. throw _privateConstructorUsedError;
  43. }
  44. /// @nodoc
  45. abstract class $TrashEventCopyWith<$Res> {
  46. factory $TrashEventCopyWith(
  47. TrashEvent value, $Res Function(TrashEvent) then) =
  48. _$TrashEventCopyWithImpl<$Res>;
  49. }
  50. /// @nodoc
  51. class _$TrashEventCopyWithImpl<$Res> implements $TrashEventCopyWith<$Res> {
  52. _$TrashEventCopyWithImpl(this._value, this._then);
  53. final TrashEvent _value;
  54. // ignore: unused_field
  55. final $Res Function(TrashEvent) _then;
  56. }
  57. /// @nodoc
  58. abstract class $InitialCopyWith<$Res> {
  59. factory $InitialCopyWith(Initial value, $Res Function(Initial) then) =
  60. _$InitialCopyWithImpl<$Res>;
  61. }
  62. /// @nodoc
  63. class _$InitialCopyWithImpl<$Res> extends _$TrashEventCopyWithImpl<$Res>
  64. implements $InitialCopyWith<$Res> {
  65. _$InitialCopyWithImpl(Initial _value, $Res Function(Initial) _then)
  66. : super(_value, (v) => _then(v as Initial));
  67. @override
  68. Initial get _value => super._value as Initial;
  69. }
  70. /// @nodoc
  71. class _$Initial implements Initial {
  72. const _$Initial();
  73. @override
  74. String toString() {
  75. return 'TrashEvent.initial()';
  76. }
  77. @override
  78. bool operator ==(dynamic other) {
  79. return identical(this, other) || (other is Initial);
  80. }
  81. @override
  82. int get hashCode => runtimeType.hashCode;
  83. @override
  84. @optionalTypeArgs
  85. TResult when<TResult extends Object?>({
  86. required TResult Function() initial,
  87. }) {
  88. return initial();
  89. }
  90. @override
  91. @optionalTypeArgs
  92. TResult maybeWhen<TResult extends Object?>({
  93. TResult Function()? initial,
  94. required TResult orElse(),
  95. }) {
  96. if (initial != null) {
  97. return initial();
  98. }
  99. return orElse();
  100. }
  101. @override
  102. @optionalTypeArgs
  103. TResult map<TResult extends Object?>({
  104. required TResult Function(Initial value) initial,
  105. }) {
  106. return initial(this);
  107. }
  108. @override
  109. @optionalTypeArgs
  110. TResult maybeMap<TResult extends Object?>({
  111. TResult Function(Initial value)? initial,
  112. required TResult orElse(),
  113. }) {
  114. if (initial != null) {
  115. return initial(this);
  116. }
  117. return orElse();
  118. }
  119. }
  120. abstract class Initial implements TrashEvent {
  121. const factory Initial() = _$Initial;
  122. }
  123. /// @nodoc
  124. class _$TrashStateTearOff {
  125. const _$TrashStateTearOff();
  126. _TrashState call(
  127. {required List<TrashObject> objects,
  128. required Either<Unit, WorkspaceError> successOrFailure}) {
  129. return _TrashState(
  130. objects: objects,
  131. successOrFailure: successOrFailure,
  132. );
  133. }
  134. }
  135. /// @nodoc
  136. const $TrashState = _$TrashStateTearOff();
  137. /// @nodoc
  138. mixin _$TrashState {
  139. List<TrashObject> get objects => throw _privateConstructorUsedError;
  140. Either<Unit, WorkspaceError> get successOrFailure =>
  141. throw _privateConstructorUsedError;
  142. @JsonKey(ignore: true)
  143. $TrashStateCopyWith<TrashState> get copyWith =>
  144. throw _privateConstructorUsedError;
  145. }
  146. /// @nodoc
  147. abstract class $TrashStateCopyWith<$Res> {
  148. factory $TrashStateCopyWith(
  149. TrashState value, $Res Function(TrashState) then) =
  150. _$TrashStateCopyWithImpl<$Res>;
  151. $Res call(
  152. {List<TrashObject> objects,
  153. Either<Unit, WorkspaceError> successOrFailure});
  154. }
  155. /// @nodoc
  156. class _$TrashStateCopyWithImpl<$Res> implements $TrashStateCopyWith<$Res> {
  157. _$TrashStateCopyWithImpl(this._value, this._then);
  158. final TrashState _value;
  159. // ignore: unused_field
  160. final $Res Function(TrashState) _then;
  161. @override
  162. $Res call({
  163. Object? objects = freezed,
  164. Object? successOrFailure = freezed,
  165. }) {
  166. return _then(_value.copyWith(
  167. objects: objects == freezed
  168. ? _value.objects
  169. : objects // ignore: cast_nullable_to_non_nullable
  170. as List<TrashObject>,
  171. successOrFailure: successOrFailure == freezed
  172. ? _value.successOrFailure
  173. : successOrFailure // ignore: cast_nullable_to_non_nullable
  174. as Either<Unit, WorkspaceError>,
  175. ));
  176. }
  177. }
  178. /// @nodoc
  179. abstract class _$TrashStateCopyWith<$Res> implements $TrashStateCopyWith<$Res> {
  180. factory _$TrashStateCopyWith(
  181. _TrashState value, $Res Function(_TrashState) then) =
  182. __$TrashStateCopyWithImpl<$Res>;
  183. @override
  184. $Res call(
  185. {List<TrashObject> objects,
  186. Either<Unit, WorkspaceError> successOrFailure});
  187. }
  188. /// @nodoc
  189. class __$TrashStateCopyWithImpl<$Res> extends _$TrashStateCopyWithImpl<$Res>
  190. implements _$TrashStateCopyWith<$Res> {
  191. __$TrashStateCopyWithImpl(
  192. _TrashState _value, $Res Function(_TrashState) _then)
  193. : super(_value, (v) => _then(v as _TrashState));
  194. @override
  195. _TrashState get _value => super._value as _TrashState;
  196. @override
  197. $Res call({
  198. Object? objects = freezed,
  199. Object? successOrFailure = freezed,
  200. }) {
  201. return _then(_TrashState(
  202. objects: objects == freezed
  203. ? _value.objects
  204. : objects // ignore: cast_nullable_to_non_nullable
  205. as List<TrashObject>,
  206. successOrFailure: successOrFailure == freezed
  207. ? _value.successOrFailure
  208. : successOrFailure // ignore: cast_nullable_to_non_nullable
  209. as Either<Unit, WorkspaceError>,
  210. ));
  211. }
  212. }
  213. /// @nodoc
  214. class _$_TrashState implements _TrashState {
  215. const _$_TrashState({required this.objects, required this.successOrFailure});
  216. @override
  217. final List<TrashObject> objects;
  218. @override
  219. final Either<Unit, WorkspaceError> successOrFailure;
  220. @override
  221. String toString() {
  222. return 'TrashState(objects: $objects, successOrFailure: $successOrFailure)';
  223. }
  224. @override
  225. bool operator ==(dynamic other) {
  226. return identical(this, other) ||
  227. (other is _TrashState &&
  228. (identical(other.objects, objects) ||
  229. const DeepCollectionEquality()
  230. .equals(other.objects, objects)) &&
  231. (identical(other.successOrFailure, successOrFailure) ||
  232. const DeepCollectionEquality()
  233. .equals(other.successOrFailure, successOrFailure)));
  234. }
  235. @override
  236. int get hashCode =>
  237. runtimeType.hashCode ^
  238. const DeepCollectionEquality().hash(objects) ^
  239. const DeepCollectionEquality().hash(successOrFailure);
  240. @JsonKey(ignore: true)
  241. @override
  242. _$TrashStateCopyWith<_TrashState> get copyWith =>
  243. __$TrashStateCopyWithImpl<_TrashState>(this, _$identity);
  244. }
  245. abstract class _TrashState implements TrashState {
  246. const factory _TrashState(
  247. {required List<TrashObject> objects,
  248. required Either<Unit, WorkspaceError> successOrFailure}) = _$_TrashState;
  249. @override
  250. List<TrashObject> get objects => throw _privateConstructorUsedError;
  251. @override
  252. Either<Unit, WorkspaceError> get successOrFailure =>
  253. throw _privateConstructorUsedError;
  254. @override
  255. @JsonKey(ignore: true)
  256. _$TrashStateCopyWith<_TrashState> get copyWith =>
  257. throw _privateConstructorUsedError;
  258. }