onState property

(void Function(S state)?) onState
getter/setter pair

Implementation

void Function(S state)? onState;