afterFirstLayout method

  1. @override
  2. @mustCallSuper
void afterFirstLayout(
  1. BuildContext context
)
override

Implementation

@override
@mustCallSuper
void afterFirstLayout(BuildContext context) {
  if (mounted) {
    // Subscribe to route changes
    ThemeConfig.routeObserver
        .subscribe(this, ModalRoute.of(context) as PageRoute);
    // Execute asynchronously as soon as possible
    Timer.run(_enterScreen);
  }
}