Guest User

Untitled

a guest
Jul 15th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. //Add data to the stream
  2. Function(String) get changeEmail => _emailController.sink.add;
  3. Function(String) get changePassword => _passwordController.sink.add;
  4.  
  5. //Retreive data from the stream
  6. Stream<String> get email => _emailController.stream
  7. .transform(validateEmail); //Return the transformed stream
  8. Stream<String> get password =>
  9. _passwordController.stream.transform(validatePassword);
Add Comment
Please, Sign In to add comment