onPress property

NavigationActionCallback? onPress
final

An optional callback to execute when the item is tapped.

If this function returns true, the default page navigation will occur after the action completes. If it returns false or null, the navigation is prevented.

Implementation

final NavigationActionCallback? onPress;