It's not clear (from examples or unit tests) how one might generate an anonymous function for passing to a call, e.g.:
setState(() {
doSomething();
})
Sure I could use a Code() block, but I'm looking for the Method() variant. e.g.
refer('setState').call([
// What do I put here?
]);
FunctionType is allowed there (its an expression), where as Method is not, but I suspect I actually want a Method, maybe just one without a name? And then wrap it in a CodeExpression?
It's not clear (from examples or unit tests) how one might generate an anonymous function for passing to a call, e.g.:
Sure I could use a Code() block, but I'm looking for the Method() variant. e.g.
FunctionType is allowed there (its an expression), where as Method is not, but I suspect I actually want a Method, maybe just one without a name? And then wrap it in a CodeExpression?