legalDocumentLauncher top-level property

  1. @visibleForTesting
ExternalUrlLauncher legalDocumentLauncher
getter/setter pair

The launcher openLegalDocument uses. Tests swap it to capture the URL without a platform channel, and restore it in tearDown.

Implementation

@visibleForTesting
ExternalUrlLauncher legalDocumentLauncher = _launchExternally;