Skip to content

Commit

Permalink
Merge pull request #9 from rosera/tastethedream-patch-7
Browse files Browse the repository at this point in the history
Update ex3-5.md
  • Loading branch information
rosera authored Dec 15, 2022
2 parents f5947ef + 4c27ea7 commit 331a472
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 331a472

Please sign in to comment.