Heap constructor

Heap([
  1. dynamic cmp
])

Implementation

Heap([cmp]) {
  this.cmp = cmp != null ? cmp : defaultCmp;
  this.nodes = [];
}