Allows for checking if a when value is in a list.
_WhenCheck isIn<T>(Iterable<T> list) => <T>(value) => list.contains(value);