Get your own website
main.dart:13:16: Error: The getter 'total' isn't defined for the type 'List<String>'.
 - 'List' is from 'dart:core'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'total'.
  print(fruits.total);
               ^^^^^