clickOutside method

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

Clicks outside of the current element.

If the current element does not exist or is not displayed, do nothing.

Implementation

@override
Future<void> clickOutside() async {
  if (!exists || !displayed || utils.root == this) return;
  await utils.root.click();
}