dispose method

Future<bool> dispose(
  1. Reference reference
)

Dispose reference from native side.

Avoid calling this manually. Let Reference handle it with Finalizer.

Implementation

Future<bool> dispose(final Reference reference) => disposeById(reference.id);