whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? loadStockData(
    1. InventoryReportType reportType,
    2. String facilityId,
    3. String productVariantId
    )?,
  2. TResult? loadStockReconciliationData(
    1. String facilityId,
    2. String productVariantId
    )?,
  3. TResult? loading()?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(InventoryReportType reportType, String facilityId,
          String productVariantId)?
      loadStockData,
  TResult? Function(String facilityId, String productVariantId)?
      loadStockReconciliationData,
  TResult? Function()? loading,
}) =>
    throw _privateConstructorUsedError;