deleteBlock method

Future<void> deleteBlock(
  1. int hospitalId,
  2. int blockId
)

Deletes a block from a hospital.

hospitalId The ID of the hospital. blockId The ID of the block to delete. Returns a Future<void>.

Implementation

Future<void> deleteBlock(int hospitalId, int blockId) async {
  await _makeRequest('/api/hospitals/$hospitalId/blocks/$blockId/',
      method: 'DELETE');
}