setInterval method
Implementation
@VoltronMethod(kFuncSetInterval)
bool setInterval(int interval, String callId, JSPromise promise) {
var timer = TimerTask(interval, true, callId, (task) {
promise.resolve("");
});
_timeInfo[callId] = timer;
timer.start();
return true;
}