welcome_bloc.freezed.dart 9.5 KB

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