operator + method

U16 operator +(
  1. U16 other
)
override

Adds other to this number.

The result is an int, as described by int.+, if both this number and other is an integer, otherwise the result is a double.

Implementation

U16 operator +(U16 other) => U16((value + other.value).toUnsigned(16));