isMobile function

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

Implementation

bool isMobile([PlatformDetector? detector]) =>
    (detector?.type ?? PlatformDetector.platform.type) == PlatformType.mobile;