tick method

void tick()

tick

Implementation

void tick() {
  final tmp = current;
  current = previous;
  previous = tmp;
  current.clear();
}