VideoViewerAd class

Constructors

VideoViewerAd({required Duration durationToSkip, required Widget child, Duration? durationToStart, double? fractionToStart, Duration durationToEnd = const Duration(seconds: 8)})

Properties

child Widget
It is the ad to show
final
durationToEnd Duration
It is a threshold that serves to create a range where the video will be shown, that is, if your video starts on second 35 and the duration to end is 8 seconds, then in a range from second 35 to second 43 it will be able to show the ad.
final
durationToSkip Duration
It is the duration to wait to skip the ad
final
durationToStart Duration?
It is the position of the video when it will show the ad
final
fractionToStart double?
It is used when you want to show an ad in the porcetange of the video. For example, the half of the video (0.5), a quarter of the video (0.25)
final
hashCode int
The hash code for this object.
no setteroverride
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.
override