Categories
Mastering Development

In Dart, is there a better solution than a large switch statement

I have a large multi-level switch statement that I’m using to take a table/field ID combination and return a string. Is there a system in dart that is a better choice in regards to read-ability and performance than a switch statement? Is there anything like a mapping or something that I should be using? This […]