MediaContent class Null safety
Class used to tell the info about the media content of a Native Ad. It's usually used alongside NativeAdController. A media content is never null.
The Media Content can be an image or a video. If you're using test ads,
video ads needs to be requested using the Native Video Test Ad Unit Id,
which you can get by calling
- aspectRatio → double?
The aspect ratio of the media content, which can be an image or a video.
This usually corresponds to the aspect ratio set in
- duration → Duration?
The duration of the video, if avaiable
- hashCode → int
The hash code for this object.
- hasVideoContent → bool?
Indicates whether the media content has video content (
true) or not (
- runtimeType → Type
A representation of the runtime type of the object.