enableSecure method

  1. @override
Future<void> enableSecure()
override

Implementation

@override
Future<void> enableSecure() async {
  // Web browsers do not provide an API to block screenshots.
  // However, we can disable text selection as a deterrent.
  web.document.body?.style.setProperty('user-select', 'none');
  web.document.body?.style.setProperty('-webkit-user-select', 'none');
}