readFilePathsAsync method

Future<List<String>> readFilePathsAsync()

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;
}