countSteps property

int get countSteps

Implementation

int get countSteps =>
    task.steps.where((step) => !(step is CompletionStep)).length +
    (task.steps.where((step) => step is CompletionStep).isEmpty ? 0 : 1);