onFirstRender method

  1. @mustCallSuper
  2. @override
void onFirstRender()
override

Called when a page is first rendered. This is skipped on rebuilds and will only be called once be page.

If a new instance of the page is pushed onto the navigation state. Then this will be called again.

Implementation

@mustCallSuper
@override
void onFirstRender() {
  super.onFirstRender();
  currentException = null;
  _renderTimestamp = DateTime.now().asSecondsEpoch;
}