Skip to content

Instantly share code, notes, and snippets.

@kwalrath
Last active January 31, 2020 22:30
Show Gist options
  • Save kwalrath/85bc6e4d227b6b41ed939fc76710d4ca to your computer and use it in GitHub Desktop.
Save kwalrath/85bc6e4d227b6b41ed939fc76710d4ca to your computer and use it in GitHub Desktop.
StreamBuilder<String>(
stream: NumberCreator().stream.map((i) => 'String $i'),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) {
return Text('No data yet.');
} else if (snapshot.connectionState == ConnectionState.done) {
return Text('Done!');
}
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment