void StateSetter(VoidCallback fn)

The signature of State.setState functions.

Source

typedef void StateSetter(VoidCallback fn);