total property

int total

The total of the dice roll, including the modifier.

Implementation

int get total =>
    results.reduce((all, cur) => all + cur) + (dice.modifierValue ?? 0);