sort
library
Functions
-
declaresMain(List<String> lines)
→ bool
-
Whether
lines declare a top-level main — the mark of an entry point.
-
directiveUris(List<String> lines)
→ List<String>
-
Every
import, export and part URI in lines, in source order.
-
sortImports(List<String> lines, String packageName, bool emojis, bool exitIfChanged, String? filePath, bool noBlankLines = false, List<CustomTier> customTiers = const [], bool groupProjectByFolder = false, bool testImports = false, List<String> testImportPrefixes = TidyConfig.defaultTestImportPrefixes, bool separateRelativeImports = false, bool sortExports = false, int groupProjectByFolderDepth = 0, bool removeDuplicates = false, bool flat = false, bool relativeImports = false, String? libRelativePath, })
→ ImportSortData
-
Sort the imports of a dart file.