remove method Null safety

Future remove()

Implementation

@JSName('remove')
Future remove() {
  var completer = new Completer();
  _remove(() {
    completer.complete();
  }, (error) {
    completer.completeError(error);
  });
  return completer.future;
}