setActiveTarget method
Updates the currently active target ID and notifies listeners if it changed.
Implementation
void setActiveTarget(String id) {
if (_activeTargetId != id) {
_activeTargetId = id;
notifyListeners();
}
}
Updates the currently active target ID and notifies listeners if it changed.
void setActiveTarget(String id) {
if (_activeTargetId != id) {
_activeTargetId = id;
notifyListeners();
}
}