capture method

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

Asks the platform to hide the cursor and hold it in place.

The answer arrives on stateChanges; a refused capture reports nothing and leaves the state CaptureState.released.

Implementation

@override
Future<void> capture() async {
  _calls.add('capture');
  if (!isSupported || refuses) return;
  _set(true);
}