addPubRootDirectories method

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

Add a list of directories that should 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 addPubRootDirectories(List<String> pubRootDirectories) {
  pubRootDirectories =<String>((String directory) => Uri.parse(directory).path).toList();

  final Set<String> directorySet = Set<String>.from(pubRootDirectories);
  if (_pubRootDirectories != null) {

  _pubRootDirectories = directorySet.toList();