What is package naming convention used in Dart?
问题 Is there a naming convention for Dart packages? Is there maybe a document that describes patterns? I have trouble figuring out naming convention for package names that consist of multiple words. For example, should I use placeView , PlaceView , place_view , or something else? 回答1: This is documented on the name section of Pubspec Format documentation . It should be all lowercase, with underscores to separate words, just_like_this . Stick with basic Latin letters and Arabic digits: [a-z0-9_]