onNotActive<T> method

T? onNotActive<T>(
  1. T callback
)

return T when timer is not active and not null else return null

Implementation

T? onNotActive<T>(T callback) {
  if (!isActive) {
    return callback;
  } else {
    return null;
  }
}