This commit is contained in:
2026-04-13 15:18:37 +02:00
parent a30a1f3a14
commit d19d6ab3d9
10 changed files with 601 additions and 113 deletions

View File

@@ -6,25 +6,29 @@ class StoreState extends Equatable {
final StoreStatus status;
final StoreModel? store;
final String? errorMessage;
final List<StoreModel> stores;
const StoreState({
this.status = StoreStatus.initial,
this.store,
this.errorMessage,
required this.stores,
});
StoreState copyWith({
StoreStatus? status,
StoreModel? store,
String? errorMessage,
List<StoreModel>? stores,
}) {
return StoreState(
status: status ?? this.status,
store: store ?? this.store,
errorMessage: errorMessage ?? this.errorMessage,
stores: stores ?? this.stores,
);
}
@override
List<Object?> get props => [status, store, errorMessage];
List<Object?> get props => [status, store, errorMessage, stores];
}