set method Null safety

void set (
  1. int v
)

the short value (number from -32768 to 32767)

Implementation

void set(int v) {
  if (v > 32767 || v < -32768) {
    throw _gen.error('Byte must be between -32768 and 32767');
  }
  _number = v;
}