operator [] method
Gets the binary value of the passed in value.
Since this class is optimized for enums, this will throw if you pass in a
value that wasn't included when creating this set. This is because enums
have a .values
list that are guaranteed to contain all the elements of
the enum.
Implementation
int operator [](T value) => flags[value]!;