dispose method Null safety

void dispose()

Disposes this object and release resources.

Implementation

void dispose() {
  hide();
}