dispose method
void
dispose()
Stops the service and releases the native callback.
Calls the C++ stop_service function and closes the NativeCallable,
allowing the Dart isolate to exit cleanly.
Implementation
void dispose() {
stopService();
_callable.close();
}