dropWhile() works like drop(), but it instead takes a lambda expression as a parameter. The first items are skipped, until that lambda expression evaluates to true. At that point, all remaining items are emitted.

In this case, we skip "all" items while they are odd. Since the 2 is the first even item, all items starting with 2 get emitted.

You can learn more about this in:
Run Edit