initializeElement method
Implementation
@override
void initializeElement() {
super.initializeElement();
addEventSubscription(
type: 'scroll',
callback: widget.onScroll,
eventTransformer: (final html.Event event) =>
EventDetails(event, targetNode: this),
);
}