172 lines
		
	
	
		
			5.5 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			172 lines
		
	
	
		
			5.5 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
| // coverage:ignore-file
 | |
| // GENERATED CODE - DO NOT MODIFY BY HAND
 | |
| // ignore_for_file: type=lint
 | |
| // 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, unnecessary_question_mark
 | |
| 
 | |
| part of 'loading_error.dart';
 | |
| 
 | |
| // **************************************************************************
 | |
| // FreezedGenerator
 | |
| // **************************************************************************
 | |
| 
 | |
| T _$identity<T>(T value) => value;
 | |
| 
 | |
| final _privateConstructorUsedError = UnsupportedError(
 | |
|     '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 information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
 | |
| 
 | |
| /// @nodoc
 | |
| mixin _$LoadingError {
 | |
|   String get message => throw _privateConstructorUsedError;
 | |
|   bool get enableRetry => throw _privateConstructorUsedError;
 | |
|   void Function()? get retry => throw _privateConstructorUsedError;
 | |
| 
 | |
|   @JsonKey(ignore: true)
 | |
|   $LoadingErrorCopyWith<LoadingError> get copyWith =>
 | |
|       throw _privateConstructorUsedError;
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| abstract class $LoadingErrorCopyWith<$Res> {
 | |
|   factory $LoadingErrorCopyWith(
 | |
|           LoadingError value, $Res Function(LoadingError) then) =
 | |
|       _$LoadingErrorCopyWithImpl<$Res, LoadingError>;
 | |
|   @useResult
 | |
|   $Res call({String message, bool enableRetry, void Function()? retry});
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| class _$LoadingErrorCopyWithImpl<$Res, $Val extends LoadingError>
 | |
|     implements $LoadingErrorCopyWith<$Res> {
 | |
|   _$LoadingErrorCopyWithImpl(this._value, this._then);
 | |
| 
 | |
|   // ignore: unused_field
 | |
|   final $Val _value;
 | |
|   // ignore: unused_field
 | |
|   final $Res Function($Val) _then;
 | |
| 
 | |
|   @pragma('vm:prefer-inline')
 | |
|   @override
 | |
|   $Res call({
 | |
|     Object? message = null,
 | |
|     Object? enableRetry = null,
 | |
|     Object? retry = freezed,
 | |
|   }) {
 | |
|     return _then(_value.copyWith(
 | |
|       message: null == message
 | |
|           ? _value.message
 | |
|           : message // ignore: cast_nullable_to_non_nullable
 | |
|               as String,
 | |
|       enableRetry: null == enableRetry
 | |
|           ? _value.enableRetry
 | |
|           : enableRetry // ignore: cast_nullable_to_non_nullable
 | |
|               as bool,
 | |
|       retry: freezed == retry
 | |
|           ? _value.retry
 | |
|           : retry // ignore: cast_nullable_to_non_nullable
 | |
|               as void Function()?,
 | |
|     ) as $Val);
 | |
|   }
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| abstract class _$$LoadingErrorImplCopyWith<$Res>
 | |
|     implements $LoadingErrorCopyWith<$Res> {
 | |
|   factory _$$LoadingErrorImplCopyWith(
 | |
|           _$LoadingErrorImpl value, $Res Function(_$LoadingErrorImpl) then) =
 | |
|       __$$LoadingErrorImplCopyWithImpl<$Res>;
 | |
|   @override
 | |
|   @useResult
 | |
|   $Res call({String message, bool enableRetry, void Function()? retry});
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| class __$$LoadingErrorImplCopyWithImpl<$Res>
 | |
|     extends _$LoadingErrorCopyWithImpl<$Res, _$LoadingErrorImpl>
 | |
|     implements _$$LoadingErrorImplCopyWith<$Res> {
 | |
|   __$$LoadingErrorImplCopyWithImpl(
 | |
|       _$LoadingErrorImpl _value, $Res Function(_$LoadingErrorImpl) _then)
 | |
|       : super(_value, _then);
 | |
| 
 | |
|   @pragma('vm:prefer-inline')
 | |
|   @override
 | |
|   $Res call({
 | |
|     Object? message = null,
 | |
|     Object? enableRetry = null,
 | |
|     Object? retry = freezed,
 | |
|   }) {
 | |
|     return _then(_$LoadingErrorImpl(
 | |
|       message: null == message
 | |
|           ? _value.message
 | |
|           : message // ignore: cast_nullable_to_non_nullable
 | |
|               as String,
 | |
|       enableRetry: null == enableRetry
 | |
|           ? _value.enableRetry
 | |
|           : enableRetry // ignore: cast_nullable_to_non_nullable
 | |
|               as bool,
 | |
|       retry: freezed == retry
 | |
|           ? _value.retry
 | |
|           : retry // ignore: cast_nullable_to_non_nullable
 | |
|               as void Function()?,
 | |
|     ));
 | |
|   }
 | |
| }
 | |
| 
 | |
| /// @nodoc
 | |
| 
 | |
| class _$LoadingErrorImpl implements _LoadingError {
 | |
|   const _$LoadingErrorImpl(
 | |
|       {required this.message, this.enableRetry = false, this.retry = null});
 | |
| 
 | |
|   @override
 | |
|   final String message;
 | |
|   @override
 | |
|   @JsonKey()
 | |
|   final bool enableRetry;
 | |
|   @override
 | |
|   @JsonKey()
 | |
|   final void Function()? retry;
 | |
| 
 | |
|   @override
 | |
|   String toString() {
 | |
|     return 'LoadingError(message: $message, enableRetry: $enableRetry, retry: $retry)';
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   bool operator ==(Object other) {
 | |
|     return identical(this, other) ||
 | |
|         (other.runtimeType == runtimeType &&
 | |
|             other is _$LoadingErrorImpl &&
 | |
|             (identical(other.message, message) || other.message == message) &&
 | |
|             (identical(other.enableRetry, enableRetry) ||
 | |
|                 other.enableRetry == enableRetry) &&
 | |
|             (identical(other.retry, retry) || other.retry == retry));
 | |
|   }
 | |
| 
 | |
|   @override
 | |
|   int get hashCode => Object.hash(runtimeType, message, enableRetry, retry);
 | |
| 
 | |
|   @JsonKey(ignore: true)
 | |
|   @override
 | |
|   @pragma('vm:prefer-inline')
 | |
|   _$$LoadingErrorImplCopyWith<_$LoadingErrorImpl> get copyWith =>
 | |
|       __$$LoadingErrorImplCopyWithImpl<_$LoadingErrorImpl>(this, _$identity);
 | |
| }
 | |
| 
 | |
| abstract class _LoadingError implements LoadingError {
 | |
|   const factory _LoadingError(
 | |
|       {required final String message,
 | |
|       final bool enableRetry,
 | |
|       final void Function()? retry}) = _$LoadingErrorImpl;
 | |
| 
 | |
|   @override
 | |
|   String get message;
 | |
|   @override
 | |
|   bool get enableRetry;
 | |
|   @override
 | |
|   void Function()? get retry;
 | |
|   @override
 | |
|   @JsonKey(ignore: true)
 | |
|   _$$LoadingErrorImplCopyWith<_$LoadingErrorImpl> get copyWith =>
 | |
|       throw _privateConstructorUsedError;
 | |
| }
 |