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