buildNotificationWidget method

Widget buildNotificationWidget(
  1. BuildContext context,
  2. Widget child
)

Implementation

Widget buildNotificationWidget(BuildContext context, Widget child) {
  if (widget.lazy) {
    return NotificationListener<ScrollEndNotification>(
      onNotification: (scrollNotification) {
        return postNotification(scrollNotification, context);
      },
      child: child,
    );
  } else {
    return NotificationListener<ScrollNotification>(
      onNotification: (scrollNotification) {
        return postNotification(scrollNotification, context);
      },
      child: child,
    );
  }
}