removeDisk method

void removeDisk(
  1. String name
)

Removes a disk from the registry

Implementation

void removeDisk(String name) {
  if (!_disks.containsKey(name)) {
    throw NotFoundException('Disk "$name" is not registered');
  }
  _disks.remove(name);
}