mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 14:07:59 -06:00
31 lines
657 B
Dart
31 lines
657 B
Dart
import 'package:equatable/equatable.dart';
|
|
import 'package:paperless_api/paperless_api.dart';
|
|
|
|
class SavedViewState with EquatableMixin {
|
|
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,
|
|
);
|
|
}
|
|
}
|