543 lines
15 KiB
Dart
543 lines
15 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 'sync_bloc.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 _$SyncEvent {
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() startSync,
|
|
required TResult Function() cancelSync,
|
|
}) => throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? startSync,
|
|
TResult? Function()? cancelSync,
|
|
}) => throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? startSync,
|
|
TResult Function()? cancelSync,
|
|
required TResult orElse(),
|
|
}) => throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_StartSync value) startSync,
|
|
required TResult Function(_CancelSync value) cancelSync,
|
|
}) => throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult? Function(_StartSync value)? startSync,
|
|
TResult? Function(_CancelSync value)? cancelSync,
|
|
}) => throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_StartSync value)? startSync,
|
|
TResult Function(_CancelSync value)? cancelSync,
|
|
required TResult orElse(),
|
|
}) => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SyncEventCopyWith<$Res> {
|
|
factory $SyncEventCopyWith(SyncEvent value, $Res Function(SyncEvent) then) =
|
|
_$SyncEventCopyWithImpl<$Res, SyncEvent>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SyncEventCopyWithImpl<$Res, $Val extends SyncEvent>
|
|
implements $SyncEventCopyWith<$Res> {
|
|
_$SyncEventCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SyncEvent
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$StartSyncImplCopyWith<$Res> {
|
|
factory _$$StartSyncImplCopyWith(
|
|
_$StartSyncImpl value,
|
|
$Res Function(_$StartSyncImpl) then,
|
|
) = __$$StartSyncImplCopyWithImpl<$Res>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$StartSyncImplCopyWithImpl<$Res>
|
|
extends _$SyncEventCopyWithImpl<$Res, _$StartSyncImpl>
|
|
implements _$$StartSyncImplCopyWith<$Res> {
|
|
__$$StartSyncImplCopyWithImpl(
|
|
_$StartSyncImpl _value,
|
|
$Res Function(_$StartSyncImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of SyncEvent
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$StartSyncImpl implements _StartSync {
|
|
const _$StartSyncImpl();
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SyncEvent.startSync()';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType && other is _$StartSyncImpl);
|
|
}
|
|
|
|
@override
|
|
int get hashCode => runtimeType.hashCode;
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() startSync,
|
|
required TResult Function() cancelSync,
|
|
}) {
|
|
return startSync();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? startSync,
|
|
TResult? Function()? cancelSync,
|
|
}) {
|
|
return startSync?.call();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? startSync,
|
|
TResult Function()? cancelSync,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (startSync != null) {
|
|
return startSync();
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_StartSync value) startSync,
|
|
required TResult Function(_CancelSync value) cancelSync,
|
|
}) {
|
|
return startSync(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult? Function(_StartSync value)? startSync,
|
|
TResult? Function(_CancelSync value)? cancelSync,
|
|
}) {
|
|
return startSync?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_StartSync value)? startSync,
|
|
TResult Function(_CancelSync value)? cancelSync,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (startSync != null) {
|
|
return startSync(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class _StartSync implements SyncEvent {
|
|
const factory _StartSync() = _$StartSyncImpl;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$CancelSyncImplCopyWith<$Res> {
|
|
factory _$$CancelSyncImplCopyWith(
|
|
_$CancelSyncImpl value,
|
|
$Res Function(_$CancelSyncImpl) then,
|
|
) = __$$CancelSyncImplCopyWithImpl<$Res>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$CancelSyncImplCopyWithImpl<$Res>
|
|
extends _$SyncEventCopyWithImpl<$Res, _$CancelSyncImpl>
|
|
implements _$$CancelSyncImplCopyWith<$Res> {
|
|
__$$CancelSyncImplCopyWithImpl(
|
|
_$CancelSyncImpl _value,
|
|
$Res Function(_$CancelSyncImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of SyncEvent
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$CancelSyncImpl implements _CancelSync {
|
|
const _$CancelSyncImpl();
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SyncEvent.cancelSync()';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType && other is _$CancelSyncImpl);
|
|
}
|
|
|
|
@override
|
|
int get hashCode => runtimeType.hashCode;
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function() startSync,
|
|
required TResult Function() cancelSync,
|
|
}) {
|
|
return cancelSync();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function()? startSync,
|
|
TResult? Function()? cancelSync,
|
|
}) {
|
|
return cancelSync?.call();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function()? startSync,
|
|
TResult Function()? cancelSync,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (cancelSync != null) {
|
|
return cancelSync();
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_StartSync value) startSync,
|
|
required TResult Function(_CancelSync value) cancelSync,
|
|
}) {
|
|
return cancelSync(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult? Function(_StartSync value)? startSync,
|
|
TResult? Function(_CancelSync value)? cancelSync,
|
|
}) {
|
|
return cancelSync?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_StartSync value)? startSync,
|
|
TResult Function(_CancelSync value)? cancelSync,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (cancelSync != null) {
|
|
return cancelSync(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class _CancelSync implements SyncEvent {
|
|
const factory _CancelSync() = _$CancelSyncImpl;
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SyncState {
|
|
bool get isSyncing => throw _privateConstructorUsedError;
|
|
double get progress => throw _privateConstructorUsedError;
|
|
SyncStep? get currentStep => throw _privateConstructorUsedError;
|
|
String? get message => throw _privateConstructorUsedError;
|
|
SyncStats? get stats => throw _privateConstructorUsedError;
|
|
String? get errorMessage => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of SyncState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$SyncStateCopyWith<SyncState> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SyncStateCopyWith<$Res> {
|
|
factory $SyncStateCopyWith(SyncState value, $Res Function(SyncState) then) =
|
|
_$SyncStateCopyWithImpl<$Res, SyncState>;
|
|
@useResult
|
|
$Res call({
|
|
bool isSyncing,
|
|
double progress,
|
|
SyncStep? currentStep,
|
|
String? message,
|
|
SyncStats? stats,
|
|
String? errorMessage,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SyncStateCopyWithImpl<$Res, $Val extends SyncState>
|
|
implements $SyncStateCopyWith<$Res> {
|
|
_$SyncStateCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SyncState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? isSyncing = null,
|
|
Object? progress = null,
|
|
Object? currentStep = freezed,
|
|
Object? message = freezed,
|
|
Object? stats = freezed,
|
|
Object? errorMessage = freezed,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
isSyncing: null == isSyncing
|
|
? _value.isSyncing
|
|
: isSyncing // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
progress: null == progress
|
|
? _value.progress
|
|
: progress // ignore: cast_nullable_to_non_nullable
|
|
as double,
|
|
currentStep: freezed == currentStep
|
|
? _value.currentStep
|
|
: currentStep // ignore: cast_nullable_to_non_nullable
|
|
as SyncStep?,
|
|
message: freezed == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
stats: freezed == stats
|
|
? _value.stats
|
|
: stats // ignore: cast_nullable_to_non_nullable
|
|
as SyncStats?,
|
|
errorMessage: freezed == errorMessage
|
|
? _value.errorMessage
|
|
: errorMessage // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SyncStateImplCopyWith<$Res>
|
|
implements $SyncStateCopyWith<$Res> {
|
|
factory _$$SyncStateImplCopyWith(
|
|
_$SyncStateImpl value,
|
|
$Res Function(_$SyncStateImpl) then,
|
|
) = __$$SyncStateImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
bool isSyncing,
|
|
double progress,
|
|
SyncStep? currentStep,
|
|
String? message,
|
|
SyncStats? stats,
|
|
String? errorMessage,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SyncStateImplCopyWithImpl<$Res>
|
|
extends _$SyncStateCopyWithImpl<$Res, _$SyncStateImpl>
|
|
implements _$$SyncStateImplCopyWith<$Res> {
|
|
__$$SyncStateImplCopyWithImpl(
|
|
_$SyncStateImpl _value,
|
|
$Res Function(_$SyncStateImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of SyncState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? isSyncing = null,
|
|
Object? progress = null,
|
|
Object? currentStep = freezed,
|
|
Object? message = freezed,
|
|
Object? stats = freezed,
|
|
Object? errorMessage = freezed,
|
|
}) {
|
|
return _then(
|
|
_$SyncStateImpl(
|
|
isSyncing: null == isSyncing
|
|
? _value.isSyncing
|
|
: isSyncing // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
progress: null == progress
|
|
? _value.progress
|
|
: progress // ignore: cast_nullable_to_non_nullable
|
|
as double,
|
|
currentStep: freezed == currentStep
|
|
? _value.currentStep
|
|
: currentStep // ignore: cast_nullable_to_non_nullable
|
|
as SyncStep?,
|
|
message: freezed == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
stats: freezed == stats
|
|
? _value.stats
|
|
: stats // ignore: cast_nullable_to_non_nullable
|
|
as SyncStats?,
|
|
errorMessage: freezed == errorMessage
|
|
? _value.errorMessage
|
|
: errorMessage // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$SyncStateImpl implements _SyncState {
|
|
const _$SyncStateImpl({
|
|
this.isSyncing = false,
|
|
this.progress = 0.0,
|
|
this.currentStep,
|
|
this.message,
|
|
this.stats,
|
|
this.errorMessage,
|
|
});
|
|
|
|
@override
|
|
@JsonKey()
|
|
final bool isSyncing;
|
|
@override
|
|
@JsonKey()
|
|
final double progress;
|
|
@override
|
|
final SyncStep? currentStep;
|
|
@override
|
|
final String? message;
|
|
@override
|
|
final SyncStats? stats;
|
|
@override
|
|
final String? errorMessage;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SyncState(isSyncing: $isSyncing, progress: $progress, currentStep: $currentStep, message: $message, stats: $stats, errorMessage: $errorMessage)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SyncStateImpl &&
|
|
(identical(other.isSyncing, isSyncing) ||
|
|
other.isSyncing == isSyncing) &&
|
|
(identical(other.progress, progress) ||
|
|
other.progress == progress) &&
|
|
(identical(other.currentStep, currentStep) ||
|
|
other.currentStep == currentStep) &&
|
|
(identical(other.message, message) || other.message == message) &&
|
|
(identical(other.stats, stats) || other.stats == stats) &&
|
|
(identical(other.errorMessage, errorMessage) ||
|
|
other.errorMessage == errorMessage));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
isSyncing,
|
|
progress,
|
|
currentStep,
|
|
message,
|
|
stats,
|
|
errorMessage,
|
|
);
|
|
|
|
/// Create a copy of SyncState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SyncStateImplCopyWith<_$SyncStateImpl> get copyWith =>
|
|
__$$SyncStateImplCopyWithImpl<_$SyncStateImpl>(this, _$identity);
|
|
}
|
|
|
|
abstract class _SyncState implements SyncState {
|
|
const factory _SyncState({
|
|
final bool isSyncing,
|
|
final double progress,
|
|
final SyncStep? currentStep,
|
|
final String? message,
|
|
final SyncStats? stats,
|
|
final String? errorMessage,
|
|
}) = _$SyncStateImpl;
|
|
|
|
@override
|
|
bool get isSyncing;
|
|
@override
|
|
double get progress;
|
|
@override
|
|
SyncStep? get currentStep;
|
|
@override
|
|
String? get message;
|
|
@override
|
|
SyncStats? get stats;
|
|
@override
|
|
String? get errorMessage;
|
|
|
|
/// Create a copy of SyncState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$SyncStateImplCopyWith<_$SyncStateImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|