isEmbedded static method

Future<bool> isEmbedded()

Implementation

static Future<bool> isEmbedded() async {
  try {
    if (_appEmbedded != null) {
      return _appEmbedded!;
    }
    _appEmbedded = await methodChannel.invokeMethod<bool>("checkEmbedded");
  } on MissingPluginException {
    _appEmbedded = false;
  }
  print("isEmbedded : $_appEmbedded");
  return _appEmbedded == true;
}