Fix type error found by dartanalyzer --strong

We were declaring that the function passed to setState should return a
Function. In reality, we want the function to return void (and everyone calls
it with a function that returns void).
1 file changed
tree: 563ee82bb2132c50325a8f6ece86d29e5ee04bf6
  1. packages/