set onConnectionChanged(Future<void> Function(bool) onConnectionChanged) => _onConnectionChanged = onConnectionChanged;