Rust might be partially responsible for that, maybe? Python has also massively improved its pattern matching recently.
[1] https://dart.dev/language/patterns