Cequiel Cequiel - 7 months ago 38
Dart Question

Dart: access the caller instance from a function

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) {

I would like to access the "listener" variable from inside the function. Thanks.

Function listener;
listener = (Event event) {