instance
Makes a new instance of the state that is a copy, except for the specification of whether the state is entered.
Parameters
entered Option
true indicates that the new instance will determine whether the copy is entered or not based on whether this state is entered or not; otherwise, the copy will default to not being entered. The default is false, meaning the clone will always not be currently entered when created.