cancel method

Future<void> cancel()

Closes the file chooser without selecting any files.

Implementation

Future<void> cancel() async {
  assert(!_handled, 'Cannot cancel FileChooser which is already handled!');
  _handled = true;
}