A court heard the six-year-old victim later showed signs of anxiety after the assault, which took place at a Dublin address in 2022.