clear method
Implementation
void clear({
required bool doOnListen,
required T value,
}) {
if (doOnListen) {
_onListenRun(value);
}
_hasValue = false;
_timer?.cancel();
_timer = null;
}
void clear({
required bool doOnListen,
required T value,
}) {
if (doOnListen) {
_onListenRun(value);
}
_hasValue = false;
_timer?.cancel();
_timer = null;
}