Future<FileWriter> createWriter()

Source

Future<FileWriter> createWriter() {
  var completer = new Completer<FileWriter>();
  _createWriter(
      (value) { completer.complete(value); },
      (error) { completer.completeError(error); });
  return completer.future;
}