onConnectionStateChange property
dynamic Function(String currentState, String previousState)?
onConnectionStateChange
getter/setter pair
Implementation
Function(String currentState, String previousState)? onConnectionStateChange;