preventsDisplaySleepDuringVideoPlayback property
Whether the screen is prevented from sleeping during video playback.
Defaults to true.
This is currently only supported on iOS and macOS.
Implementation
final bool preventsDisplaySleepDuringVideoPlayback;