in lib/src/game_storage.dart [19:37]
bool updateBestTime(Game game) {
assert(game.state == GameState.won);
final w = game.field.width;
final h = game.field.height;
final m = game.field.bombCount;
final duration = game.duration!.inMilliseconds;
final key = _getKey(w, h, m);
final currentScore = _getIntValue(key, null);
if (currentScore == null || currentScore > duration) {
_setIntValue(key, duration);
_bestTimeUpdated.add(null);
return true;
} else {
return false;
}
}