refreshUnityView method

void refreshUnityView()

Implementation

void refreshUnityView() {
  html.Element? frame = html.document
      .querySelector('flt-platform-view')
      ?.querySelector('iframe');

  if (frame != null) {
    (frame as html.IFrameElement).focus();
  }
}