addPeerConstraint method
Implementation
bool addPeerConstraint(ActorConstraint constraint) {
_peerConstraints ??= <ActorConstraint>[];
if (_peerConstraints!.contains(constraint)) {
return false;
}
_peerConstraints!.add(constraint);
return true;
}