public bool recommendDeferredLoading(float velocity, ScrollMetrics metrics, BuildContext context) { D.assert(metrics != null); D.assert(context != null); if (parent == null) { float maxPhysicalPixels = WidgetsBinding.instance.window.physicalSize.longestSide; return(velocity.abs() > maxPhysicalPixels); } return(parent.recommendDeferredLoading(velocity, metrics, context)); }
public bool recommendDeferredLoading(BuildContext context) { D.assert(context != null); D.assert(activity != null); return(physics.recommendDeferredLoading(activity.velocity, ScrollMetricsUtils.copyWith(this), context)); }