In Dart, private members are accessible within the same library. With import you import a library and can access only its public members . With part / part of you can split one library into several files and private members are accessible for all code within these files.