Sets or clears a flag in a value based on the provided state.
Reference to the value where the flag will be modified.
The flag to set or clear.
A boolean indicating whether to set or clear the flag.
See Implementation
Sets or clears a flag in a value based on the provided state.