Created
March 23, 2020 17:05
-
-
Save Andrious/e294c6d5db061f1119bd816fd0eac2b5 to your computer and use it in GitHub Desktop.
The Model class in the 'Write Your First App' example.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:english_words/english_words.dart'; | |
class Model{ | |
List<String> getData() { | |
Iterable<WordPair> wordPair = generateWordPairs().take(10); | |
List<String> data = List(); | |
wordPair.forEach((pair) { | |
data.add(pair.asPascalCase); | |
}); | |
return data; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment