addListener method

void addListener(
  1. dynamic listener(
    1. ScrollNotification? scrollEvent,
    2. RenderObject? renderObject
    )
)

Implementation

void addListener(
    Function(ScrollNotification? scrollEvent, RenderObject? renderObject)
        listener) {
  listeners.add(listener);
  onAdd.call(listener);
}