dispose method

Future<void> dispose()

Disposes the self created isolate for json encoding/decoding

Does nothing if you pass your own isolate

Implementation

Future<void> dispose() async {
  if (!_hasCustomIsolate) {
    return _isolate.dispose();
  }
}