isIOS property

bool get isIOS

Returns true if the current platform is iOS.

Implementation

static bool get isIOS =>
    // maxTouchPoints is needed to separate iPad iOS13 vs new MacOS
    GetUtils.hasMatch(_navigator.platform, "/iPad|iPhone|iPod/") ||
    (_navigator.platform == "MacIntel" && _navigator.maxTouchPoints > 1);