onActive<T> method
T?
onActive<T>(
- T callback
return T
when timer is still active and not null else return null
Implementation
T? onActive<T>(T callback) {
if (isActive) {
return callback;
} else {
return null;
}
}