divide method

void divide(
  1. num other
)

Reassign the state value by dividing with an other number

Implementation

void divide(num other) {
  setValue(this.getValue() / other);
}