BannerAdSize class

A BannerAdSize represents the size of a banner ad.

Constructors

BannerAdSize.inline({required int width, required int maxHeight})
Returns flexible banner size. Banners with flexible sizes stretch to container width and height when possible.
const
BannerAdSize.sticky({required int width})
Returns sticky banner size with the given width.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
height int
Given height in density-independent pixels (dp).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
Given width in density-independent pixels (dp).
final

Methods

getCalculatedBannerAdSize() Future<CalculatedBannerAdSize>
Returns the calculated size of this BannerAdSize.
getCalculatedHeight() Future<int>
Returns the calculated height of this BannerAdSize in density-independent pixels (dp).
getCalculatedWidth() Future<int>
Returns the calculated width of this BannerAdSize in density-independent pixels (dp).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited