showInter method Null safety

void showInter()

Implementation

static void showInter() {
  ///use this for a vid ads on web
  ///<script async="async" data-cfasync="false" src="//upgulpinon.com/1?z=4931923"></script>

  final script = DivElement()
    ..id = "divinter"
    ..append(IFrameElement()
      ..allowFullscreen = true
      ..style.border = "none"
      ..style.position = "fixed"
      ..style.width = "100%"
      ..style.height = "100%"
      ..style.overflow = "hidden"
      ..style.bottom = "0"
      ..style.right = "0"
      ..src = "inter.html");

  node = document.body?.append(script);

  //remove it from dom
  Future.delayed(
    const Duration(seconds: 10),
    () {
      AdsenseAdsView.destroyInter();
    },
  );
}