InventoryReportState class

Implementers
Annotations
  • @freezed

Constructors

InventoryReportState.empty()
const
factory
InventoryReportState.loading()
const
factory
InventoryReportState.stock({@Default({}) Map<String, List<StockModel>> stockData})
const
factory
InventoryReportState.stockReconciliation({@Default({}) Map<String, List<StockReconciliationModel>> data})
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult loading(InventoryReportLoadingState value), required TResult empty(InventoryReportEmptyState value), required TResult stock(InventoryReportStockState value), required TResult stockReconciliation(InventoryReportStockReconciliationState value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? loading(InventoryReportLoadingState value)?, TResult? empty(InventoryReportEmptyState value)?, TResult? stock(InventoryReportStockState value)?, TResult? stockReconciliation(InventoryReportStockReconciliationState value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult loading(InventoryReportLoadingState value)?, TResult empty(InventoryReportEmptyState value)?, TResult stock(InventoryReportStockState value)?, TResult stockReconciliation(InventoryReportStockReconciliationState value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult loading()?, TResult empty()?, TResult stock(Map<String, List<StockModel>> stockData)?, TResult stockReconciliation(Map<String, List<StockReconciliationModel>> data)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult loading(), required TResult empty(), required TResult stock(Map<String, List<StockModel>> stockData), required TResult stockReconciliation(Map<String, List<StockReconciliationModel>> data)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? loading()?, TResult? empty()?, TResult? stock(Map<String, List<StockModel>> stockData)?, TResult? stockReconciliation(Map<String, List<StockReconciliationModel>> data)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited