mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-06 01:15:44 -06:00
30 lines
594 B
Dart
30 lines
594 B
Dart
part of 'saved_view_cubit.dart';
|
|
|
|
class SavedViewState extends Equatable {
|
|
final bool hasLoaded;
|
|
final Map<int, SavedView> value;
|
|
|
|
const SavedViewState({
|
|
this.value = const {},
|
|
this.hasLoaded = false,
|
|
});
|
|
|
|
@override
|
|
List<Object?> get props => [
|
|
hasLoaded,
|
|
value,
|
|
];
|
|
|
|
SavedViewState copyWith({
|
|
Map<int, SavedView>? value,
|
|
int? selectedSavedViewId,
|
|
bool overwriteSelectedSavedViewId = false,
|
|
bool? hasLoaded,
|
|
}) {
|
|
return SavedViewState(
|
|
value: value ?? this.value,
|
|
hasLoaded: hasLoaded ?? this.hasLoaded,
|
|
);
|
|
}
|
|
}
|