isAndroid property

bool isAndroid
final

Whether the operating system is a version of Android.

Implementation

@pragma("vm:platform-const")
static final bool isAndroid = (_operatingSystem == "android");