page_stack_bloc.freezed.dart 9.3 KB

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