durationToEnd property
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.
Implementation
final Duration durationToEnd;