asScrollUpdate method

ScrollUpdateNotification asScrollUpdate()

Convert this notification to a ScrollNotification.

This allows it to be used with ScrollNotificationPredicates.

Implementation

ScrollUpdateNotification asScrollUpdate() {
  return ScrollUpdateNotification(
    metrics: metrics,
    context: context,
    depth: depth,
  );
}