onChangeState property

void Function(ButtonState state)? onChangeState
getter/setter pair

Callback when button state changes

Implementation

void Function(ButtonState state)? onChangeState;