Gonzalo Chumillas
2016-07-18 16:05:38 UTC
How could I access the "caller" instance from a function. The following
code throws a syntax error:
// Error: Local variables cannot be referenced before they are declared
Function listener = (Event event) {
print(listener);
};
I would like to access the "listener" variable from inside the function.
Thanks.
code throws a syntax error:
// Error: Local variables cannot be referenced before they are declared
Function listener = (Event event) {
print(listener);
};
I would like to access the "listener" variable from inside the function.
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.