onHover property

TabValueChanged<bool>? onHover
final

An optional callback that's called when a Tab's hover state in the TabBar changes.

Called when a pointer enters or exits the ink response area of the Tab.

The value passed to the callback is true if a pointer has entered the Tab at index and false if a pointer has exited.

When hover is moved from one tab directly to another, this will be called twice. First to represent hover exiting the initial tab, and then second for the pointer entering hover over the next tab.

This sample shows how to customize a Tab in response to hovering over a TabBar.
link

To create a local project with this code sample, run:
flutter create --sample=material.TabBar.onHover.1 mysample

Implementation

final TabValueChanged<bool>? onHover;