replace method

dynamic replace(
  1. dynamic x
)

Implementation

replace(x) {
  return _heapreplace(this.nodes, x, this.cmp);
}