didUpdateWidget method

void didUpdateWidget(
  1. StatefulWidget oldWidget
)

Override this method to respond when the StatefulWidget is recreated.

Implementation

void didUpdateWidget(StatefulWidget oldWidget) {
  /// The framework always calls build() after calling [didUpdateWidget], which
  /// means any calls to [setState] in [didUpdateWidget] are redundant.
}