getParent method Null safety

Future<Entry> getParent()

Implementation

@JSName('getParent')
Future<Entry> getParent() {
  var completer = new Completer<Entry>();
  _getParent((value) {
    applyExtension('Entry', value);
    applyExtension('webkitFileSystemEntry', value);
    applyExtension('FileSystemEntry', value);
    completer.complete(value);
  }, (error) {
    completer.completeError(error);
  });
  return completer.future;
}