ScreenSaverWrapper constructor

const ScreenSaverWrapper({
  1. Key? key,
  2. required Widget child,
  3. required List<ScreenSaverMedia> mediaItems,
  4. Duration inactivityDuration = const Duration(minutes: 1),
  5. Duration slideDuration = const Duration(seconds: 5),
  6. Curve slideCurve = Curves.easeInOut,
  7. Color backgroundColor = Colors.black,
})

Creates a ScreenSaverWrapper widget.

Implementation

const ScreenSaverWrapper({
  super.key,
  required this.child,
  required this.mediaItems,
  this.inactivityDuration = const Duration(minutes: 1),
  this.slideDuration = const Duration(seconds: 5),
  this.slideCurve = Curves.easeInOut,
  this.backgroundColor = Colors.black,
});