part of 'inventory_analytic_loader_bloc.dart';

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

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