AdUnit class Null safety

Describes an AdMob ad unit.


AdUnit({String? adFormat, List<String>? adTypes, String? adUnitId, String? appId, String? displayName, String? name})
AdUnit.fromJson(Map _json)


adFormat String?
AdFormat of the ad unit. [...]
read / write
adTypes List<String>?
Ad media type supported by this ad unit. [...]
read / write
adUnitId String?
The externally visible ID of the ad unit which can be used to integrate with the AdMob SDK. [...]
read / write
appId String?
The externally visible ID of the app this ad unit is associated with. [...]
read / write
displayName String?
The display name of the ad unit as shown in the AdMob UI, which is provided by the user. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
name String?
Resource name for this ad unit. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


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


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