onConnectionChange property

set onConnectionChange (OnConnectionChange? onConnectionChange)

Get connection state changes.

Implementation

static set onConnectionChange(OnConnectionChange? onConnectionChange) =>
    _platform.onConnectionChange = onConnectionChange;