onInit method

  1. @mustCallSuper
void onInit()

Called after the reactive controller has been initialized.

This method is typically used to perform tasks that require the widget tree to be fully built.

It is recommended to use this method to perform setup tasks.

Implementation

@mustCallSuper
void onInit() {
  Logger.info('onInit of $runtimeType called', tag: 'ReactiveController');
  WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
    onReady();
  });
}