dispose method

  1. @override
void dispose()
override

Implementation

@override
void dispose() {
  try {
    port.close(); // stop dispatch loop
    close(); // close engine
  } on JSError catch (e) {
    print(e); // catch reference leak exception
  }
}