StreamedIntervalTimer<T> constructor
Implementation
StreamedIntervalTimer(FutureOr<void> Function(T?) func,
Duration duration, {bool execNow = true}):
super(null, duration, execNow: false) {
fn = (tm) {
func(_obj);
_obj = null;
};
if (execNow) {
start();
} else {
Timer(duration, start);
}
}