WorkspaceInfo constructor

WorkspaceInfo({
  1. required bool isWorkspace,
  2. Directory? workspaceRoot,
  3. required Directory currentPackage,
})

Implementation

WorkspaceInfo({
  required this.isWorkspace,
  this.workspaceRoot,
  required this.currentPackage,
}) : isWorkspacePackage =
         isWorkspace &&
         workspaceRoot != null &&
         workspaceRoot.path != currentPackage.path;