part of 'inventory_analytic_loader_bloc.dart';

@freezed
class InventoryAnalyticLoaderState with _$InventoryAnalyticLoaderState {
  const factory InventoryAnalyticLoaderState({
    required InventoryAnalytic inventoryAnalytic,
    required Option<AnalyticFailure> failureOptionInventoryAnalytic,
    @Default(false) bool isFetching,
  }) = _InventoryAnalyticLoaderState;

  factory InventoryAnalyticLoaderState.initial() =>
      InventoryAnalyticLoaderState(
        inventoryAnalytic: InventoryAnalytic.empty(),
        failureOptionInventoryAnalytic: none(),
      );
}
