PlatformAdUnitId class

A pair of per-platform ad unit IDs.

Constructors

PlatformAdUnitId({String? android, String? ios})
Creates a per-platform ad unit ID pair; leave a platform null if the app does not ship there.
const

Properties

android String?
The Android ad unit ID (ca-app-pub-…).
final
hashCode int
The hash code for this object.
no setteroverride
ios String?
The iOS ad unit ID (ca-app-pub-…).
final
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
resolve(AdPlatform platform) String?
The ID for platform, or null if none was configured.
toString() String
A string representation of this object.
inherited

Operators

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