showBackButton property

bool get showBackButton

Returns false on web (browser back/forward arrows handle navigation) and true on mobile (where an in-app back button is needed).

Usage in AppBars:

AppBar(
  automaticallyImplyLeading: Sint.showBackButton,
)

Implementation

bool get showBackButton => !kIsWeb;