Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: samples/pop-pop-win/lib/src/poppopwin/game_state.dart

Issue 200723008: samples/poppopwin: upgrade to first-class sample (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 part of ppw; 1 part of ppw;
2 2
3 class GameState { 3 class GameState {
4 static const GameState reset = const GameState._internal("reset"); 4 static const GameState reset = const GameState._internal("reset");
5 static const GameState started = const GameState._internal("started"); 5 static const GameState started = const GameState._internal("started");
6 static const GameState won = const GameState._internal("won"); 6 static const GameState won = const GameState._internal("won");
7 static const GameState lost = const GameState._internal("lost"); 7 static const GameState lost = const GameState._internal("lost");
8 final String name; 8 final String name;
9 9
10 const GameState._internal(this.name); 10 const GameState._internal(this.name);
11 11
12 String toString() => 'GameState: $name'; 12 String toString() => 'GameState: $name';
13 } 13 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698