removeRoot method

bool removeRoot(
  1. Root root
)

Removes a Root by it's Root.uri.

Returns true if root was removed, and false if no Root with a matching URI was present.

Notifies all connected servers of the change to the list of roots, if a root was in fact removed.

Implementation

bool removeRoot(Root root) {
  final removed = _roots.remove(root);
  if (removed) _notifyRootsListChanged();
  return removed;
}