onInit method

  1. @mustCallSuper
void onInit(
  1. BuildContext element
)

Called when View is created

Implementation

@mustCallSuper
void onInit(BuildContext element) {
  _assertStateBuilderInitialized();
  Dock
    ..registerPostFrameCallback(onPostFrame)
    ..registerNextFrameCallback(onNextFrame);
}