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