increment method

void increment([
  1. num step = 1
])

Increment the value by a given step (default is 1).

Implementation

void increment([num step = 1]) => value += step;