Skip to content

Instantly share code, notes, and snippets.

@Andrious
Created March 23, 2020 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Andrious/e294c6d5db061f1119bd816fd0eac2b5 to your computer and use it in GitHub Desktop.
Save Andrious/e294c6d5db061f1119bd816fd0eac2b5 to your computer and use it in GitHub Desktop.
The Model class in the 'Write Your First App' example.
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