splash_bloc.freezed.dart 7.9 KB

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