Get immediate access to this and over 1,500+ other videos and books.

Boost your skills with a Beginner subscription. With over 60+ video courses and our core foundational programming books bundled in one subscription, it’s simply the best investment you can make in your development career.

Add the Score

This video was last updated on Apr 12 2022

You’ll see how to modify the app to display the player’s total score.


Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

You can unlock the rest of this video course, and our entire catalogue of books and videos, with a Professional subscription.

When we last looked at our ToDo list, we generated a random number.

setState(() {

_model.totalScore = _model.totalScore + _pointsForCurrentRound();  
_model.totalScore += _pointsForCurrentRound();
children: const <Widget>[
    Text('Score: '), // old code
children: <Widget>[
    const Text('Score: '),