mod method

void mod(
  1. num other
)

Assigns the result of value % other to the variable.

Implementation

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