Dart 2 is changing the Dart language in many ways, some of which are not backward-compatible.
I'm trying to define a callback function that needs to accept a generic parameter and return a value of the …