isWeb property

bool get isWeb

Returns true when running on Flutter web (browser environment). Use this to conditionally hide back buttons, adjust layouts, or switch navigation strategies between web and mobile.

Implementation

bool get isWeb => kIsWeb;