Priority operator +(int offset)

Returns a priority relative to this priority.

A positive offset indicates a higher priority.

The parameter offset is clamped to ±kMaxOffset.

Source

Priority operator +(int offset) {
  if (offset.abs() > kMaxOffset) {
    // Clamp the input offset.
    offset = kMaxOffset * offset.sign;
  }
  return new Priority._(_value + offset);
}