isWeb property

bool get isWeb

Whether the app is running on the web platform.

Returns kIsWeb in production. This is a getter (rather than a bare kIsWeb read) so web-specific branches — the web FCM VAPID short-circuit in NotificationService.initializeFcmToken and the web auto-enable in _getDefaultFCMValue — are reachable under flutter test on the VM (where kIsWeb is compile-time false) via isWebOverride. Both production web reads go through this shared seam.

Implementation

static bool get isWeb => _isWeb ?? kIsWeb;