BannerAdVariant enum

Which banner size an AdBannerWidget should request.

Inheritance
Available extensions

Values

standard → const BannerAdVariant

Fixed 320x50 standard banner.

largeBanner → const BannerAdVariant

Fixed 320x100 "Large Banner". This is the "larger banner" size.

mediumRectangle → const BannerAdVariant

Fixed 300x250 "Medium Rectangle" — bigger than largeBanner, good for in-feed placements.

adaptive → const BannerAdVariant

Full-width banner whose height is chosen by Google for the device and current orientation, using the Large anchored adaptive size (typically ~90-100dp tall). Recommended by Google over fixed sizes when you want a taller, more prominent banner.

compactAdaptive → const BannerAdVariant

Full-width banner using Google's compact "current orientation anchored" adaptive size (typically ~50-90dp tall, close to standard's height) — full device width like adaptive, but without the extra height adaptive reserves. The usual choice for an edge-to-edge footer banner that shouldn't dominate the screen.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<BannerAdVariant>
A constant List of the values in this enum, in order of their declaration.