ScrollNotificationObserver constructor Null safety

const ScrollNotificationObserver(
  1. {Key? key,
  2. required Widget child}
)

Create a ScrollNotificationObserver.

The child parameter must not be null.

Implementation

const ScrollNotificationObserver({
  super.key,
  required this.child,
}) : assert(child != null);