Get your own website
main.dart:3:8: Error: The operator '[]=' isn't defined for the type 'String'.
Try correcting the operator to an existing operator, or defining a '[]=' operator.
  fruit[0] = 'C';
       ^