resetPubRootDirectories method Null safety

  1. @visibleForTesting
  2. @protected
void resetPubRootDirectories()
protected">@protectedvisibleForTesting">@visibleForTesting

Resets the list of directories, that should be considered part of the local project, to the value passed in pubRootDirectories.

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

Implementation

@visibleForTesting
@protected
void resetPubRootDirectories() {
  _pubRootDirectories = <String>[];
  _isLocalCreationCache.clear();
}