protectScreen static method

Future<void> protectScreen({
  1. required bool enabled,
})

Implementation

static Future<void> protectScreen({required bool enabled}) async {
  await setScreenshotProtectionEnabled(enabled: enabled);
}