initWidgetEvents method

void initWidgetEvents()

Implementation

void initWidgetEvents() {
  widget.events[ScreenEvent.update] = (data) => updateByNewScreen(data as T);
  widget.events[ScreenEvent.backPressed] = (_) => onBackPressed();
}