startTimer method
void
startTimer()
启动定时Timer.
Implementation
void startTimer() {
if (_isActive || interval <= 0) return;
_isActive = true;
Duration duration = Duration(seconds: interval);
_doCallback(0);
_mTimer = Timer.periodic(duration, (Timer timer) {
_doCallback(timer.tick);
});
}