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
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