isApp static method

bool isApp()

Implementation

static bool isApp() {
  try {
    return Platform.isAndroid || Platform.isIOS;
  } catch (e) {
    return false;
  }
}