onBack property

VoidCallback? onBack
final

Overrides the automatic back button's action on a GlassAppBar.pinned bar.

Defaults to Navigator.maybePop, which routers built on the Pages API (go_router, auto_route, beamer) handle correctly. Supply this to use a router-specific pop instead, such as context.pop().

Implementation

final VoidCallback? onBack;