isAndroid property

bool get isAndroid

Whether the operating system is a version of Android.

Implementation

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