isWeb function

bool isWeb([
  1. PlatformDetector? detector
])
  • isWeb : true if the current platform type is Web.

Implementation

bool isWeb([PlatformDetector? detector]) =>
    (detector?.type ?? PlatformDetector.platform.type) == PlatformType.web;