start method

void start(
  1. Duration duration,
  2. void callback()
)

Implementation

void start(Duration duration, void Function() callback) {
  stop();
  _handle = Timer(duration, callback);
}