loadEventHandlers method

  1. @override
  2. @mustCallSuper
  3. @experimental
void loadEventHandlers()
override

Loads this component event handlers. Call super to check whether this component has been attached. If it hasn't, it will throw ComponentNotRenderedException.

Because this is a StringComponent, this method is not called as this component never gets rendered independently. The parent needs to call this typically during postRender.

BUG: There might need a way for this to be called automatically after attached.

Implementation

@override
@mustCallSuper
@experimental
void loadEventHandlers() {
  assertElementAttached();
}