StockReconciliationEvent class

Implementers
Annotations
  • @freezed

Constructors

StockReconciliationEvent.calculate({@Default(false) bool isDistributor})
const
factory
StockReconciliationEvent.create(StockReconciliationModel stockReconciliationModel)
const
factory
StockReconciliationEvent.selectFacility(FacilityModel facilityModel, {@Default(false) bool isDistributor})
const
factory
StockReconciliationEvent.selectProduct(String? productVariantId, {@Default(false) bool isDistributor})
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 selectFacility(StockReconciliationSelectFacilityEvent value), required TResult selectProduct(StockReconciliationSelectProductEvent value), required TResult calculate(StockReconciliationCalculateEvent value), required TResult create(StockReconciliationCreateEvent value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? selectFacility(StockReconciliationSelectFacilityEvent value)?, TResult? selectProduct(StockReconciliationSelectProductEvent value)?, TResult? calculate(StockReconciliationCalculateEvent value)?, TResult? create(StockReconciliationCreateEvent value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult selectFacility(StockReconciliationSelectFacilityEvent value)?, TResult selectProduct(StockReconciliationSelectProductEvent value)?, TResult calculate(StockReconciliationCalculateEvent value)?, TResult create(StockReconciliationCreateEvent value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult selectFacility(FacilityModel facilityModel, bool isDistributor)?, TResult selectProduct(String? productVariantId, bool isDistributor)?, TResult calculate(bool isDistributor)?, TResult create(StockReconciliationModel stockReconciliationModel)?, 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 selectFacility(FacilityModel facilityModel, bool isDistributor), required TResult selectProduct(String? productVariantId, bool isDistributor), required TResult calculate(bool isDistributor), required TResult create(StockReconciliationModel stockReconciliationModel)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? selectFacility(FacilityModel facilityModel, bool isDistributor)?, TResult? selectProduct(String? productVariantId, bool isDistributor)?, TResult? calculate(bool isDistributor)?, TResult? create(StockReconciliationModel stockReconciliationModel)?}) → TResult?
inherited

Operators

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