isReadyToRun property

bool isReadyToRun

there is a 'generated' date stamp in the .json file which might be more definitive. Returns true if the project is in state when any of its scripts can be run.

This essentially means that pub get has been ran.

We have:

  • pubspec.yaml
  • pubspec.lock

Implementation

bool get isReadyToRun =>
    hasPubSpec && !DartSdk().isPubGetRequired(pathToProjectRoot);