Get your own website
main.dart:7:13: Error: The getter 'count' isn't defined for the type 'Car'.
 - 'Car' is from 'main.dart'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'count'.
  print(car.count);
            ^^^^^