You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
void toggleView(){
//print(showSignIn.toString());
setState(() => showSignIn = !showSignIn);
}
@override
Widget build(BuildContext context) {
if (showSignIn) {
return SignIn(toggleView: toggleView);
} else {
return Register(toggleView: toggleView);
}
}```
throws error: this expression has a type of void so it's value can't be used parameter type function
The text was updated successfully, but these errors were encountered:
what does the "toggleView" property of SignIn widget accept? My doubt is that because the toggleView() method does not return anything, you can't assign "nothing" to a property of a widget
Lesson 11:
The text was updated successfully, but these errors were encountered: