Get your own website
main.dart:6:11: Error: The type 'TrafficLight' is not exhaustively matched by the switch cases since it doesn't match 'TrafficLight.green'.
 - 'TrafficLight' is from 'main.dart'.
Try adding a default case or cases that match 'TrafficLight.green'.
  switch (light) {
          ^