preventsDisplaySleepDuringVideoPlayback property
Whether the screen is prevented from sleeping during video playback.
Defaults to true.
This option may not be supported on all platforms.
Implementation
final bool preventsDisplaySleepDuringVideoPlayback;