isIOS static method

bool isIOS()

Implementation

static bool isIOS() {
  return defaultTargetPlatform == TargetPlatform.iOS ||
      defaultTargetPlatform == TargetPlatform.macOS;
}