allowUrlLoading property

Future<bool> Function(Uri? uri)? allowUrlLoading
final

If the editor should allow the default behavior for url handling when the user clicks/taps on one.

It provides a Uri so the developer can check what url was pressed.

For Android, iOS, macOS it calls InAppWebView.shouldOverrideUrlLoading to provide the Uri. For web, due to limitations, this method is called only when the editor is loaded and the uri value is null.

If you need to get the url pressed by the user, use onUrlPressed. That callback is called on all platforms when the user taps/clicks a url.

If not implemented, the default behavior is left to the platform.

Implementation

final Future<bool> Function(Uri? uri)? allowUrlLoading;