dispose method

Future<void> dispose()

Disposes this Track.

No-op, if this Track was already disposed.

Implementation

Future<void> dispose() async {
  Log.debug('dispose()', '$runtimeType');

  if (!_disposed) {
    _disposed = true;
    await Future.wait([removeRenderer(), track.free()]);
  }
}