AdViewPosition enum

Represents where a programmatic ad view should be positioned on screen.

Programmatic ad views are positioned as native overlays on top of Flutter content, rather than being embedded in the Flutter widget tree. This allows for sticky ads that stay fixed while content scrolls underneath.

Can be used with banners, MRECs, and other ad view types.

Inheritance
Available extensions

Values

topCenter → const AdViewPosition

Top center of the screen

const AdViewPosition('top_center')
topRight → const AdViewPosition

Top right of the screen

const AdViewPosition('top_right')
centered → const AdViewPosition

Center of the screen

const AdViewPosition('centered')
centerLeft → const AdViewPosition

Center left of the screen

const AdViewPosition('center_left')
centerRight → const AdViewPosition

Center right of the screen

const AdViewPosition('center_right')
bottomLeft → const AdViewPosition

Bottom left of the screen

const AdViewPosition('bottom_left')
bottomCenter → const AdViewPosition

Bottom center of the screen

const AdViewPosition('bottom_center')
bottomRight → const AdViewPosition

Bottom right of the screen

const AdViewPosition('bottom_right')

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
value String
Internal value for platform channel communication
final

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<AdViewPosition>
A constant List of the values in this enum, in order of their declaration.