updateShouldNotify method

  1. @override
bool updateShouldNotify(
  1. covariant DefaultTabController oldWidget
)
override

Whether the widgets that depend on this widget should be rebuilt when oldWidget is replaced by this widget.

Implementation

@override
bool updateShouldNotify(DefaultTabController oldWidget) {
  return controller != oldWidget.controller;
}