operator ~ method
Operator that converts the current object to a negate bool
instance
You can use it twice (~~myValue
) to get the actual bool
value of the current object
Implementation
bool operator ~() => !asBool(this);
Operator that converts the current object to a negate bool
instance
You can use it twice (~~myValue
) to get the actual bool
value of the current object
bool operator ~() => !asBool(this);