didUpdateWidget method

void didUpdateWidget(
  1. StatefulWidget oldWidget
)

Override this method to respond when the widget changes (e.g., to start implicit animations).

Implementation

void didUpdateWidget(StatefulWidget oldWidget) {
  /// Override this method to respond when the [widget] changes (e.g., to start
  /// implicit animations).
  /// The framework always calls [build] after calling [didUpdateWidget], which
  /// means any calls to [setState] in [didUpdateWidget] are redundant.
}