UserScrollNotification constructor Null safety

UserScrollNotification(
  1. {required ScrollMetrics metrics,
  2. required BuildContext context,
  3. required ScrollDirection direction}
)

Creates a notification that the user has changed the direction in which they are scrolling.

Implementation

UserScrollNotification({
  required ScrollMetrics metrics,
  required BuildContext context,
  required this.direction,
}) : super(metrics: metrics, context: context);