ProtectedWidget constructor

const ProtectedWidget({
  1. Key? key,
  2. required Widget child,
  3. bool enabled = true,
  4. bool blurOnRecording = true,
  5. Duration blurOnScreenshotFor = const Duration(milliseconds: 1200),
  6. double blurSigma = 8,
  7. Widget? placeholder,
})

Creates a protected wrapper around child.

Implementation

const ProtectedWidget({
  super.key,
  required this.child,
  this.enabled = true,
  this.blurOnRecording = true,
  this.blurOnScreenshotFor = const Duration(milliseconds: 1200),
  this.blurSigma = 8,
  this.placeholder,
});