|
@@ -580,10 +580,14 @@ abstract class DeletePermanently implements DocEvent {
|
|
class _$DocStateTearOff {
|
|
class _$DocStateTearOff {
|
|
const _$DocStateTearOff();
|
|
const _$DocStateTearOff();
|
|
|
|
|
|
- _DocState call({required DocLoadState loadState, required bool isDeleted}) {
|
|
|
|
|
|
+ _DocState call(
|
|
|
|
+ {required DocLoadState loadState,
|
|
|
|
+ required bool isDeleted,
|
|
|
|
+ required bool forceClose}) {
|
|
return _DocState(
|
|
return _DocState(
|
|
loadState: loadState,
|
|
loadState: loadState,
|
|
isDeleted: isDeleted,
|
|
isDeleted: isDeleted,
|
|
|
|
+ forceClose: forceClose,
|
|
);
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -595,6 +599,7 @@ const $DocState = _$DocStateTearOff();
|
|
mixin _$DocState {
|
|
mixin _$DocState {
|
|
DocLoadState get loadState => throw _privateConstructorUsedError;
|
|
DocLoadState get loadState => throw _privateConstructorUsedError;
|
|
bool get isDeleted => throw _privateConstructorUsedError;
|
|
bool get isDeleted => throw _privateConstructorUsedError;
|
|
|
|
+ bool get forceClose => throw _privateConstructorUsedError;
|
|
|
|
|
|
@JsonKey(ignore: true)
|
|
@JsonKey(ignore: true)
|
|
$DocStateCopyWith<DocState> get copyWith =>
|
|
$DocStateCopyWith<DocState> get copyWith =>
|
|
@@ -605,7 +610,7 @@ mixin _$DocState {
|
|
abstract class $DocStateCopyWith<$Res> {
|
|
abstract class $DocStateCopyWith<$Res> {
|
|
factory $DocStateCopyWith(DocState value, $Res Function(DocState) then) =
|
|
factory $DocStateCopyWith(DocState value, $Res Function(DocState) then) =
|
|
_$DocStateCopyWithImpl<$Res>;
|
|
_$DocStateCopyWithImpl<$Res>;
|
|
- $Res call({DocLoadState loadState, bool isDeleted});
|
|
|
|
|
|
+ $Res call({DocLoadState loadState, bool isDeleted, bool forceClose});
|
|
|
|
|
|
$DocLoadStateCopyWith<$Res> get loadState;
|
|
$DocLoadStateCopyWith<$Res> get loadState;
|
|
}
|
|
}
|
|
@@ -622,6 +627,7 @@ class _$DocStateCopyWithImpl<$Res> implements $DocStateCopyWith<$Res> {
|
|
$Res call({
|
|
$Res call({
|
|
Object? loadState = freezed,
|
|
Object? loadState = freezed,
|
|
Object? isDeleted = freezed,
|
|
Object? isDeleted = freezed,
|
|
|
|
+ Object? forceClose = freezed,
|
|
}) {
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
return _then(_value.copyWith(
|
|
loadState: loadState == freezed
|
|
loadState: loadState == freezed
|
|
@@ -632,6 +638,10 @@ class _$DocStateCopyWithImpl<$Res> implements $DocStateCopyWith<$Res> {
|
|
? _value.isDeleted
|
|
? _value.isDeleted
|
|
: isDeleted // ignore: cast_nullable_to_non_nullable
|
|
: isDeleted // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
as bool,
|
|
|
|
+ forceClose: forceClose == freezed
|
|
|
|
+ ? _value.forceClose
|
|
|
|
+ : forceClose // ignore: cast_nullable_to_non_nullable
|
|
|
|
+ as bool,
|
|
));
|
|
));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -648,7 +658,7 @@ abstract class _$DocStateCopyWith<$Res> implements $DocStateCopyWith<$Res> {
|
|
factory _$DocStateCopyWith(_DocState value, $Res Function(_DocState) then) =
|
|
factory _$DocStateCopyWith(_DocState value, $Res Function(_DocState) then) =
|
|
__$DocStateCopyWithImpl<$Res>;
|
|
__$DocStateCopyWithImpl<$Res>;
|
|
@override
|
|
@override
|
|
- $Res call({DocLoadState loadState, bool isDeleted});
|
|
|
|
|
|
+ $Res call({DocLoadState loadState, bool isDeleted, bool forceClose});
|
|
|
|
|
|
@override
|
|
@override
|
|
$DocLoadStateCopyWith<$Res> get loadState;
|
|
$DocLoadStateCopyWith<$Res> get loadState;
|
|
@@ -667,6 +677,7 @@ class __$DocStateCopyWithImpl<$Res> extends _$DocStateCopyWithImpl<$Res>
|
|
$Res call({
|
|
$Res call({
|
|
Object? loadState = freezed,
|
|
Object? loadState = freezed,
|
|
Object? isDeleted = freezed,
|
|
Object? isDeleted = freezed,
|
|
|
|
+ Object? forceClose = freezed,
|
|
}) {
|
|
}) {
|
|
return _then(_DocState(
|
|
return _then(_DocState(
|
|
loadState: loadState == freezed
|
|
loadState: loadState == freezed
|
|
@@ -677,6 +688,10 @@ class __$DocStateCopyWithImpl<$Res> extends _$DocStateCopyWithImpl<$Res>
|
|
? _value.isDeleted
|
|
? _value.isDeleted
|
|
: isDeleted // ignore: cast_nullable_to_non_nullable
|
|
: isDeleted // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
as bool,
|
|
|
|
+ forceClose: forceClose == freezed
|
|
|
|
+ ? _value.forceClose
|
|
|
|
+ : forceClose // ignore: cast_nullable_to_non_nullable
|
|
|
|
+ as bool,
|
|
));
|
|
));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -684,16 +699,21 @@ class __$DocStateCopyWithImpl<$Res> extends _$DocStateCopyWithImpl<$Res>
|
|
/// @nodoc
|
|
/// @nodoc
|
|
|
|
|
|
class _$_DocState implements _DocState {
|
|
class _$_DocState implements _DocState {
|
|
- const _$_DocState({required this.loadState, required this.isDeleted});
|
|
|
|
|
|
+ const _$_DocState(
|
|
|
|
+ {required this.loadState,
|
|
|
|
+ required this.isDeleted,
|
|
|
|
+ required this.forceClose});
|
|
|
|
|
|
@override
|
|
@override
|
|
final DocLoadState loadState;
|
|
final DocLoadState loadState;
|
|
@override
|
|
@override
|
|
final bool isDeleted;
|
|
final bool isDeleted;
|
|
|
|
+ @override
|
|
|
|
+ final bool forceClose;
|
|
|
|
|
|
@override
|
|
@override
|
|
String toString() {
|
|
String toString() {
|
|
- return 'DocState(loadState: $loadState, isDeleted: $isDeleted)';
|
|
|
|
|
|
+ return 'DocState(loadState: $loadState, isDeleted: $isDeleted, forceClose: $forceClose)';
|
|
}
|
|
}
|
|
|
|
|
|
@override
|
|
@override
|
|
@@ -705,14 +725,18 @@ class _$_DocState implements _DocState {
|
|
.equals(other.loadState, loadState)) &&
|
|
.equals(other.loadState, loadState)) &&
|
|
(identical(other.isDeleted, isDeleted) ||
|
|
(identical(other.isDeleted, isDeleted) ||
|
|
const DeepCollectionEquality()
|
|
const DeepCollectionEquality()
|
|
- .equals(other.isDeleted, isDeleted)));
|
|
|
|
|
|
+ .equals(other.isDeleted, isDeleted)) &&
|
|
|
|
+ (identical(other.forceClose, forceClose) ||
|
|
|
|
+ const DeepCollectionEquality()
|
|
|
|
+ .equals(other.forceClose, forceClose)));
|
|
}
|
|
}
|
|
|
|
|
|
@override
|
|
@override
|
|
int get hashCode =>
|
|
int get hashCode =>
|
|
runtimeType.hashCode ^
|
|
runtimeType.hashCode ^
|
|
const DeepCollectionEquality().hash(loadState) ^
|
|
const DeepCollectionEquality().hash(loadState) ^
|
|
- const DeepCollectionEquality().hash(isDeleted);
|
|
|
|
|
|
+ const DeepCollectionEquality().hash(isDeleted) ^
|
|
|
|
+ const DeepCollectionEquality().hash(forceClose);
|
|
|
|
|
|
@JsonKey(ignore: true)
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@override
|
|
@@ -722,13 +746,17 @@ class _$_DocState implements _DocState {
|
|
|
|
|
|
abstract class _DocState implements DocState {
|
|
abstract class _DocState implements DocState {
|
|
const factory _DocState(
|
|
const factory _DocState(
|
|
- {required DocLoadState loadState, required bool isDeleted}) = _$_DocState;
|
|
|
|
|
|
+ {required DocLoadState loadState,
|
|
|
|
+ required bool isDeleted,
|
|
|
|
+ required bool forceClose}) = _$_DocState;
|
|
|
|
|
|
@override
|
|
@override
|
|
DocLoadState get loadState => throw _privateConstructorUsedError;
|
|
DocLoadState get loadState => throw _privateConstructorUsedError;
|
|
@override
|
|
@override
|
|
bool get isDeleted => throw _privateConstructorUsedError;
|
|
bool get isDeleted => throw _privateConstructorUsedError;
|
|
@override
|
|
@override
|
|
|
|
+ bool get forceClose => throw _privateConstructorUsedError;
|
|
|
|
+ @override
|
|
@JsonKey(ignore: true)
|
|
@JsonKey(ignore: true)
|
|
_$DocStateCopyWith<_DocState> get copyWith =>
|
|
_$DocStateCopyWith<_DocState> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
throw _privateConstructorUsedError;
|