shouldRebuild method

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

Returns whether the SceneElements of the Window should be rebuild after the oldDelegate has been replaced with this instance.

Implementation

@override
bool shouldRebuild(covariant SpotlightDelegate oldDelegate) =>
    style != oldDelegate.style;