whenOrNull<TResult extends Object?> method

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

Implementation

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