remove method Null safety

void remove()

Implementation

void remove() {
  resolver.remove(this);
  dispose();
}