I am new to Flutter and Dart language. while following along a tutorial I create a validator class which has 2 StreamTransformers, this is being done in an attempt for bloc pattren, where user will type email and password in 2 TextFields and hence will be validated everytime the text changes in them.
And I am getting bulk of errors specifically in that validator class within the FromHandler constructor if I use incoming email or password they are recognized but when I put them within an if statement like I have done here they are not recignized as string objects and that is the cause of error here as you can see in the screenshot below.
apart from them bloc file also has a couple of errors as shown in 2nd screenshot below:
Flutter version : 0.5.1 dart version : 2.0
for full code please have a look inside the login_stateful_bloc folder in this repo : https://github.com/touseefbsb/LoginStateful