didMount method

  1. @override
void didMount()
override

Implementation

@override
void didMount() {
  // We check if the component uses on of the mixins that support async initialization,
  // which will delay the call to [build()] until resolved during the first build.

  if (owner.isFirstBuild && !binding.isClient && component is OnFirstBuild) {
    final result = (component as OnFirstBuild).onFirstBuild(this);
    if (result is Future<void>) {
      _asyncFirstBuild = result;
    }
  }

  super.didMount();
}