isDesktop function

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

Implementation

bool isDesktop([PlatformDetector? detector]) =>
    (detector?.type ?? PlatformDetector.platform.type) == PlatformType.desktop;