The listener function can listen to any parameter type(not only listener type). This has nothing related to widgets (this should work successfully in <https://dartpad.dev> without using the flutter).

ex.

```
int a = 0;
listener((a>0)=>print("A = $a"));
a= 1; //A = 1
a= -1; //
a= 2; //A = 2

```