initLifecycle method

  1. @override
void initLifecycle()
override

Initializes the lifecycle of this object.

This should be called when the object needs to be initialized or its resources need to be set up.

Implementation

@override
void initLifecycle() {
  super.initLifecycle();
  if (debugLabel != null) {
    raiiTrace('[RAII] Init lifecycle: $debugLabel');
  }
  widgetsBinding.addObserver(observer);
}