shouldRebuild abstract method

bool shouldRebuild(
  1. covariant TwoDimensionalChildDelegate oldDelegate
)

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

bool shouldRebuild(covariant TwoDimensionalChildDelegate oldDelegate);