isAndroid property

bool isAndroid

Whether the operating system is a version of Android.

Implementation

static bool get isAndroid {
  try {
    return platform.isAndroid;
  } catch (e) {
    return false;
  }
}