shouldRebuild method
- covariant TwoDimensionalChildListDelegate oldDelegate
override
Called whenever a new instance of the child delegate class is provided.
If the new instance represents different information than the old instance, then the method should return true, otherwise it should return false.
If the method returns false, then the build call might be optimized away.
Implementation
@override
bool shouldRebuild(covariant TwoDimensionalChildListDelegate oldDelegate) {
return children != oldDelegate.children;
}