removeSystem method

bool removeSystem(
  1. System system
)

Removes system from either schedule, calling its System.dispose.

Implementation

bool removeSystem(System system) {
  final removed = _systems.remove(system) || _startupSystems.remove(system);
  if (removed) system.dispose(this);
  return removed;
}