unregisterPlugin method

bool unregisterPlugin(
  1. String pluginId
)

Unregisters every contribution owned by pluginId.

Implementation

bool unregisterPlugin(String pluginId) {
  final originalLength = _registrations.length;
  _registrations.removeWhere(
    (registration) => registration.pluginId == pluginId,
  );
  if (_registrations.length == originalLength) {
    return false;
  }
  _notifyListeners();
  return true;
}