The element type 'Object' can't be assigned to the list type 'Widget'

Viewed 30
 Stack(
  children: [
    isShowAd ? StaticFields.interstitialAd!.show() : SizedBox(),

He says you can not assign an object to a list type widget what should I do to resolve this issue

I want to display Interstitial ads when builder runs

1 Answers

interstitial cant be show as widget , that's why its a throwing error . we have to show on click or on a timer.

Related