dispose method

void dispose()

Disposes internal state

Implementation

void dispose(){
  _actor?.kill(priority: Isolate.immediate);
  _actor = null;
  _sendPort = null;
}