when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult selectFacility(
    1. FacilityModel facilityModel,
    2. bool isDistributor
    ),
  2. required TResult selectProduct(
    1. String? productVariantId,
    2. bool isDistributor
    ),
  3. required TResult calculate(
    1. bool isDistributor
    ),
  4. required TResult create(
    1. StockReconciliationModel stockReconciliationModel
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(FacilityModel facilityModel, bool isDistributor)
      selectFacility,
  required TResult Function(String? productVariantId, bool isDistributor)
      selectProduct,
  required TResult Function(bool isDistributor) calculate,
  required TResult Function(StockReconciliationModel stockReconciliationModel)
      create,
}) =>
    throw _privateConstructorUsedError;