maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<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
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<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,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;