Re:Show HN: I built a Flutter job app for both Android and iOS
by vasper on Monday October 23, 2023 @03:28PM
(#37990397)
I cannot think of any use of union types in Flutter, if I'm being honest.
I'm not much of a TypeScript developer, but if I understand it correctly, it works quite well there because TS is more structural, where a union is more of a representation of the fields shared by two (or more) types.
I feel like Flutter/Dart just works in a bit of a different manner compared to TS/React Native, and it shouldn't be looked at from the same angle.
Swift and Kotlin also do not have union types, and mobile developers somehow manage without them :D
I somewhat agree, Dart is good. Performs well and is very flexible. What I don't like is the lack of type union. I don't know how to get around that.