unregister method
按名称移除策略
Unregisters a strategy by name. If the strategy is running, it will be stopped.
Implementation
void unregister(String name) {
final index = _strategies.indexWhere((s) => s.name == name);
if (index == -1) return;
final strategy = _strategies.removeAt(index);
if (_started) {
_safeStop(strategy);
}
}