The onPressed callback of StatMainCard's RaisedButton now has a then statement with a more explicit syntax. The getStatistic method of the state object is still being called after the user taps the button.