That is the law. You can go back through the posts and find all the links I posted explaining this.
The officer only needs a reasonable cause to stop you and require your ID, but he doesn’t have to tell you and the first time, if he charges you, when you are required to be informed is when you’re arraigned.
I assume lawyers would know more about the law then you. Do you want me to post all the links again for you?
Learn the law.