onHighlightChanged property
Called when the container either becomes highlighted or stops being highlighted.
The value passed to the callback is true if this part of the container has become highlighted and false if this part of the container has stopped being highlighted.
Implementation
final void Function(bool)? onHighlightChanged;