| OLD | NEW |
| 1 part of ppw_html; | 1 part of ppw_html; |
| 2 | 2 |
| 3 class GameStorage { | 3 class GameStorage { |
| 4 static const _gameCountKey = 'gameCount'; | 4 static const _gameCountKey = 'gameCount'; |
| 5 final EventHandle _bestTimeUpdated = new EventHandle(); | 5 final EventHandle _bestTimeUpdated = new EventHandle(); |
| 6 final Map<String, String> _cache = new Map<String, String>(); | 6 final Map<String, String> _cache = new Map<String, String>(); |
| 7 | 7 |
| 8 Future<int> get gameCount => _getIntValue(_gameCountKey); | 8 Future<int> get gameCount => _getIntValue(_gameCountKey); |
| 9 | 9 |
| 10 Stream get bestTimeUpdated => _bestTimeUpdated.stream; | 10 Stream get bestTimeUpdated => _bestTimeUpdated.stream; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 static int _parseValue(String value, int defaultValue) { | 79 static int _parseValue(String value, int defaultValue) { |
| 80 if(value == null) { | 80 if(value == null) { |
| 81 return defaultValue; | 81 return defaultValue; |
| 82 } else { | 82 } else { |
| 83 return int.parse(value); | 83 return int.parse(value); |
| 84 } | 84 } |
| 85 } | 85 } |
| 86 | 86 |
| 87 } | 87 } |
| OLD | NEW |