splash_bloc.freezed.dart 7.2 KB

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