Dart provides the part keyword to allow you to split code into separate files in a library . It’s used in the same file as the library keyword and needs to provide a relative path to the other source files that make up the library: for example, part “functions. dart”; .