removePubRootDirectories method

  1. @protected
void removePubRootDirectories(
  1. List<String> pubRootDirectories

Remove a list of directories that should no longer be considered part of the local project.

The local project directories are used to distinguish widgets created by the local project from widgets created from inside the framework or other packages.


void removePubRootDirectories(List<String> pubRootDirectories) {
  if (_pubRootDirectories == null) {
  pubRootDirectories =<String>((String directory) => Uri.parse(directory).path).toList();

  final Set<String> directorySet = Set<String>.from(_pubRootDirectories!);

  _pubRootDirectories = directorySet.toList();