Gonzalo Chumillas
2016-08-30 13:07:29 UTC
The following function declaration is wrong, since the "isOpen = !isOpen"
expression returns a boolean value:
// not good
void toggle => isOpen = !isOpen;
How could I use the "=>" operator in the above expression? I was thinking
in something like this:
void toggle => shutUp(isOpen = !isOpen);
Where 'shutUp' is a function that returns void.
Thanks.
expression returns a boolean value:
// not good
void toggle => isOpen = !isOpen;
How could I use the "=>" operator in the above expression? I was thinking
in something like this:
void toggle => shutUp(isOpen = !isOpen);
Where 'shutUp' is a function that returns void.
Thanks.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.