shouldRebuild method

  1. @override
bool shouldRebuild (covariant ListWheelChildBuilderDelegate oldDelegate)
override

Called to check whether this and the old delegate are actually 'different', so that the caller can decide to rebuild or not.

Implementation

@override
bool shouldRebuild(covariant ListWheelChildBuilderDelegate oldDelegate) {
  return builder != oldDelegate.builder || childCount != oldDelegate.childCount;
}