needsAction property

bool get needsAction

Whether this dependency needs action

Implementation

bool get needsAction {
  if (status == DependencyStatus.unused) {
    // Only flag unused dependencies in the main dependencies section
    return section == DependencySection.dependencies;
  }

  if (status == DependencyStatus.testOnly) {
    // Flag if it needs to be moved between sections
    return true;
  }

  return false;
}