I'm facing a small issue with Dart. I need my parameter to be able to accept a list containing 3 different types. In TypeScript, I would use a pipe operator like this:
public x(...parameters: (FirstType | SecondType | ThirdType)[])
Any suggestions on how I can achieve this in Dart?