ScrollObserver.withDurationMs constructor

ScrollObserver.withDurationMs(
  1. ScrollHost _scrollHost,
  2. int _idleCheckDurationMs
)

Specifies a different duration for the idle callback.

Useful for setting a longer duration to limit activity logging.

Implementation

ScrollObserver.withDurationMs(this._scrollHost, this._idleCheckDurationMs)
    : _idleCheckDuration = Duration(milliseconds: _idleCheckDurationMs) {
  _subscribe();
}