isIos method

bool isIos ()

Checks if the current app is running on the iOS ecosystem.

Implementation

bool isIos() {
  if (platformState == PlatformState.IPAD) {
    return true;
  }
  if (platformState == PlatformState.IPHONE) {
    return true;
  }
  return false;
}