addPeerConstraint method

bool addPeerConstraint (
  1. ActorConstraint constraint
)

Implementation

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