registerDisk method
Registers a disk manually at runtime.
Implementation
void registerDisk(String name, StorageDisk disk) {
if (name.isEmpty) {
throw StorageException('Disk name cannot be empty');
}
_disks[name] = disk;
}
Registers a disk manually at runtime.
void registerDisk(String name, StorageDisk disk) {
if (name.isEmpty) {
throw StorageException('Disk name cannot be empty');
}
_disks[name] = disk;
}