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({
  Key? key,
  required this.child,
}) : assert(child != null), super(key: key);