Returns the first FlagsValue which is set in value.
value
the value
a FlagsClass
the first FlagsValue which is set in value, or null if none is set