Was gonna try playing with your app, but having trouble getting it to run with the current flutter beta. Kinda new to flutter so I thought i would experiment with your code.
Android studio is unhappy here:
receiveStream.listen((BackgroundFunction backgroundFunction) {
print("Worker: working");
var result = backgroundFunction();
workDay.sendPort.send(result);
print("Worker: idle");
});
With android studio stating:
A function of type '(BackgroundFunction) -> Null' can't be assigned to a location of type '(dynamic) -> void'.
Thoughts?