Last active
June 19, 2025 14:13
-
-
Save evaisse/08f7f48f58fd196df0646439c4d7cb39 to your computer and use it in GitHub Desktop.
doc_returns_types_for_function.dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// Attention à TOUJOURS typer le retour des callback/builders | |
| /// que vous allez passer aux widgets/controllers. | |
| class Foo { | |
| Function()? onFoo; | |
| void Function()? onFoufou; | |
| Foo({ this.onFoo, this.onFoufou }); | |
| } | |
| void main() { | |
| // AVANT | |
| final a = Foo(); | |
| print(a.onFoo?.call() ?? 'foo'); | |
| // MAINTENANT | |
| print(a.onFoufou?.call() ?? 'foufou'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment