onTap property

VoidCallback? onTap
final

Callback invoked when the item is tapped.

When non-null the item becomes a navigation item, shows its indicator, and forwards taps to this callback.

Implementation

final VoidCallback? onTap;