readFilePathsAsync method
Implementation
Future<List<String>> readFilePathsAsync() {
final completer = Completer<List<String>>();
readFilePaths((success, value) {
if (success) {
completer.complete(value);
} else {
completer.completeError(StateError('Clipboard operation failed'));
}
});
return completer.future;
}