dispatchScrollUpdateNotification method

  1. @override
void dispatchScrollUpdateNotification(
  1. ScrollMetrics metrics,
  2. BuildContext context,
  3. double scrollDelta
)
override

Dispatch a ScrollUpdateNotification with the given metrics and scroll delta.

Implementation

@override
void dispatchScrollUpdateNotification(ScrollMetrics metrics, BuildContext context, double scrollDelta) {
  final dynamic lastDetails = _controller!.lastDetails;
  assert(lastDetails is DragUpdateDetails);
  ScrollUpdateNotification(metrics: metrics, context: context, scrollDelta: scrollDelta, dragDetails: lastDetails as DragUpdateDetails).dispatch(context);
}