Get your
own
website
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
import 'dart:isolate'; int countWords(String text) { return text.split(' ').length; } Future
main() async { String story = 'Once upon a time there was a little cat'; int words = await Isolate.run(() => countWords(story)); print('The story has $words words'); }
The story has 9 words