Just put this in your library file (first place): library mylibraryname; USAGE: You can then import this lib with: import "path/to/mylibraryname.dart";