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