preventsDisplaySleepDuringVideoPlayback property

bool preventsDisplaySleepDuringVideoPlayback
final

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;