mod method

void mod(
  1. int other
)

Assigns the result of value % other to the variable.

Implementation

void mod(int other) => value = value % other;