hasTimer property

bool get hasTimer

checks if the autoCloseDuration is provided or not if the autoCloseDuration is provided then the timer will be created

Implementation

bool get hasTimer => _timer != null;