cancelReservation abstract method

Future<void> cancelReservation({
  1. required String token,
  2. required int reservationId,
  3. bool force = false,
})

Cancels the reservation with reservationId.

If force is false the user made the reservation will be asked for confirmation. When true the reservation will be cancelled without confirmation. Note: User associated with token must be a supervisor of the slot.

Implementation

Future<void> cancelReservation({required String token, required int reservationId, bool force = false});