public void didEndScroll() { this.activity.dispatchScrollEndNotification( ScrollMetricsUtils.copyWith(this), this.context.notificationContext); if (this.keepScrollOffset) { this.saveScrollOffset(); } }
public void didUpdateScrollDirection(ScrollDirection direction) { new UserScrollNotification(metrics: ScrollMetricsUtils.copyWith(this), context: this.context.notificationContext, direction: direction ).dispatch(this.context.notificationContext); }
public void didOverscrollBy(float value) { D.assert(this.activity.isScrolling); this.activity.dispatchOverscrollNotification( ScrollMetricsUtils.copyWith(this), this.context.notificationContext, value); }
public void didUpdateScrollPositionBy(float delta) { this.activity.dispatchScrollUpdateNotification( ScrollMetricsUtils.copyWith(this), this.context.notificationContext, delta); }
public void didStartScroll() { this.activity.dispatchScrollStartNotification( ScrollMetricsUtils.copyWith(this), this.context.notificationContext); }
public bool recommendDeferredLoading(BuildContext context) { D.assert(context != null); D.assert(activity != null); return(physics.recommendDeferredLoading(activity.velocity, ScrollMetricsUtils.copyWith(this), context)); }