dispose method
Dispose of this PubNub instance and clean up resources.
This will clean up logging resources and any other allocated resources. After calling this method, the instance should not be used anymore.
Implementation
Future<void> dispose() async {
  await cleanupLogging();
  // Additional cleanup can be added here in the future
}