AdModel constructor

const AdModel({
  1. required String divId,
  2. required String slotId,
  3. required int width,
  4. required int height,
})

Creates an AdModel with the given parameters.

divId is the HTML element ID where the ad will be inserted. slotId is the AdSense slot identifier. width and height define the ad size.

Implementation

const AdModel({
  required this.divId,
  required this.slotId,
  required this.width,
  required this.height,
});