Get your own website
main.dart:8:18: Error: The type 'Shape' is not exhaustively matched by the switch cases since it doesn't match 'Shape()'.
 - 'Shape' is from 'main.dart'.
Try adding a wildcard pattern or cases that match 'Shape()'.
  return switch (shape) {
                 ^