ViewportChangedEvent constructor

ViewportChangedEvent(
  1. void eventHandler(
    1. ViewportChangedPayload payload
    )
)

Implementation

ViewportChangedEvent(void Function(ViewportChangedPayload payload) eventHandler)
    : super(
        TelegramEventType.viewportChanged,
        (ViewportChangedPayloadJSObject payload) {
          eventHandler(ViewportChangedPayload(payload.isStateStable.toDart));
        }.toJS,
      );