accept method
Accept the file chooser request with given files.
Implementation
Future<void> accept(List<File> files) async {
assert(!_handled, 'Cannot accept FileChooser which is already handled!');
_handled = true;
await element.uploadFile(files);
}