sistemato assets, finito creazione company, inizio lavoro store

This commit is contained in:
2026-04-09 11:30:57 +02:00
parent 0033a0aee6
commit 510d8e6f15
19 changed files with 524 additions and 231 deletions

View File

@@ -4,10 +4,23 @@ enum CompanyStatus { initial, loading, success, failure }
class CompanyState extends Equatable {
final CompanyStatus status;
final String? error;
final String? errorMessage;
final CompanyModel? company;
const CompanyState({required this.status, this.error});
const CompanyState({required this.status, this.errorMessage, this.company});
CompanyState copyWith({
CompanyStatus? status,
String? errorMessage,
CompanyModel? company,
}) {
return CompanyState(
status: status ?? this.status,
errorMessage: errorMessage ?? this.errorMessage,
company: company ?? this.company,
);
}
@override
List<Object?> get props => [status, error];
List<Object?> get props => [status, errorMessage];
}