Privacy in Dart exists at the library, rather than the class level . That’s just not how Dart is intended to be written, partly because library-private members make it easier to define operators like ==. (Private variables of a second object couldn’t be seen for the comparison.8 Mar 2021