dispose method
Destroys/disposes the viewer (including the entire scene). You cannot use the viewer after calling this method.
Implementation
@override
Future<void> dispose() async {
await _shim.dispose().toDart;
for (final callback in _onDispose) {
callback.call();
}
}