maybeWhen<TResult extends Object?> method

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

Implementation

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