Unlike Java, Dart doesn’t have the keywords public, protected, and private. If an identifier starts with an underscore _, it’s private to its library.
If you for example have class A in a separate library file (eg, other.dart), such as:
library other;
class A {
int _private = 0;
testA()...