It looked like a caching issue or build issue coming from the actual problems of OH5.0 mentioned here .
It works now as expected. My code was indeed correct. Thanks for helping.
It looked like a caching issue or build issue coming from the actual problems of OH5.0 mentioned here .
It works now as expected. My code was indeed correct. Thanks for helping.