Get your own website
main.dart:9:11: Error: The setter 'balance' isn't defined for the type 'BankAccount'.
 - 'BankAccount' is from 'main.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'balance'.
  account.balance = 1000;
          ^^^^^^^