when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult saveWarehouseDetails(
    1. DateTime dateOfRecord,
    2. FacilityModel facilityModel
    ),
  2. required TResult saveStockDetails(
    1. StockModel stockModel
    ),
  3. required TResult createStockEntry(),
  4. required TResult saveTransactionDetails(
    1. DateTime dateOfRecord,
    2. String primaryType,
    3. String primaryId,
    4. FacilityModel? facilityModel,
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(
          DateTime dateOfRecord, FacilityModel facilityModel)
      saveWarehouseDetails,
  required TResult Function(StockModel stockModel) saveStockDetails,
  required TResult Function() createStockEntry,
  required TResult Function(DateTime dateOfRecord, String primaryType,
          String primaryId, FacilityModel? facilityModel)
      saveTransactionDetails,
}) =>
    throw _privateConstructorUsedError;