iamshaunjp / iamshaunjp/flutter-firebase

void return type issues

Open
#21 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
586
Forks
427
PR merge metrics
No merged PRs in 30d

Description

Lesson 11:
```bool showSignIn = true;
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.