customer page

This commit is contained in:
efrilm
2025-10-26 22:57:22 +07:00
parent 5c683eda8d
commit 0bffd92a08
22 changed files with 3727 additions and 3 deletions
@@ -0,0 +1,16 @@
part of 'customer_loader_bloc.dart';
@freezed
class CustomerLoaderState with _$CustomerLoaderState {
factory CustomerLoaderState({
required List<Customer> customers,
required Option<CustomerFailure> failureOrOption,
Customer? selectedCustomer,
@Default(false) bool isFetching,
@Default(false) bool hasReachedMax,
@Default(1) int page,
}) = _CustomerLoaderState;
factory CustomerLoaderState.initial() =>
CustomerLoaderState(customers: [], failureOrOption: none());
}