doc_edit_bloc.freezed.dart 9.2 KB

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