I\'m still a bit new to flutter/dart (I\'m much more experienced in JS/TS) and I\'m trying to refactor a switch case in my component: