onNotActiveOrNull<T> method
T?
onNotActiveOrNull<T>(
- T callback
return T
when timer is not active or is null else return null
Implementation
T? onNotActiveOrNull<T>(T callback) {
if (!isActive) {
return callback;
} else {
return null;
}
}