mul method

void mul(
  1. int value
)

Multiplies the reactive integer by a value and updates it.

Example:

final counter = swift(10);
counter.mul(3); // counter.value is now 30

Implementation

void mul(int value) {
  this.value *= value;
}