didChangeDependencies method

void didChangeDependencies()

Called when immediately after initState. Otherwise called only if a dependency of an InheritedWidget.

Implementation

void didChangeDependencies() {
  ///
  /// if a State object's [build] references an [InheritedWidget] with
  /// [context.dependOnInheritedWidgetOfExactType]
  /// its Widget is now a 'dependency' of that that InheritedWidget.
  /// Later, if that InheritedWidget's build() function is called, all its dependencies
  /// build() functions are also called but not before this method again.
  /// Subclasses rarely use this method, but its an option if needed.
}