when<TResult extends Object?> method

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

Implementation

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