How to combine enum and switch statements to reuse an entire screen widget in flutter- #100DaysOfCode - Day 16