Skip to content

Commit

Permalink
Update ex3-5.md
Browse files Browse the repository at this point in the history
Example three changed to reflect QC2 section 2.5
  • Loading branch information
tastethedream authored Dec 5, 2022
1 parent 8f71232 commit 4c27ea7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ch03/ex3-5.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ void main() {
```


# Example: List assignment
# Example: Values.byName

```dart
enum Day { sun, mon, tues }
void main() {
List<Day> daysOfWeek = Day.values;
print('${daysOfWeek[0]}');
print(Day.values.byName('mon'));
}
```

0 comments on commit 4c27ea7

Please sign in to comment.