whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? loading()?,
  2. TResult? empty()?,
  3. TResult? stock(
    1. Map<String, List<StockModel>> stockData
    )?,
  4. TResult? stockReconciliation(
    1. Map<String, List<StockReconciliationModel>> data
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function()? loading,
  TResult? Function()? empty,
  TResult? Function(Map<String, List<StockModel>> stockData)? stock,
  TResult? Function(Map<String, List<StockReconciliationModel>> data)?
      stockReconciliation,
}) =>
    throw _privateConstructorUsedError;