onChanged A function that sends the inverse of checkState as a parameter
final Function(bool) onChanged;