AdWidget constructor

const AdWidget({
  1. Key? key,
  2. required AdWithView ad,
})

Default constructor for AdWidget.

ad must be loaded before this is added to the widget tree.

Implementation

const AdWidget({Key? key, required this.ad}) : super(key: key);