releaseResource<R extends IResource> method
Implementation
@override
R releaseResource<R extends IResource>(String resourceUId) {
final resource = _handles.remove(resourceUId);
if (resource == null) {
throw ArgumentError('Resource with id $resourceUId not found');
}
resource.updateManager(null);
return resource as R;
}