BannerSize class

Defines the size of BannerAds. Only three ad sizes are supported. The width is flexible with 320px as minimum.

There are three predefined sizes:

Constructors

BannerSize({int width = 320, int height = 50})
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
height int
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
width int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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

Constants

LARGE → const BannerSize
const BannerSize(width: 320, height: 90)
MEDIUM_RECTANGLE → const BannerSize
const BannerSize(width: 320, height: 250)
STANDARD → const BannerSize
const BannerSize(width: 320, height: 50)