Skip to content

Instantly share code, notes, and snippets.

@rullyalves
Last active August 20, 2019 09:37
Show Gist options
  • Select an option

  • Save rullyalves/0fb801e408901ea00f86f684534ed547 to your computer and use it in GitHub Desktop.

Select an option

Save rullyalves/0fb801e408901ea00f86f684534ed547 to your computer and use it in GitHub Desktop.
RXDart asyncMap operator
void main() async {
final behavior = new BehaviorSubject<String>();
Observable newStream = behavior
.asyncMap((value) => /* alguma computacao assíncrona....*/);
// ouve o novo Observable criado
newStream.listen(print);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment