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