bindClient method

void bindClient(
  1. SentryClient client
)

Binds a different client to the hub

Implementation

void bindClient(SentryClient client) {
  if (!_isEnabled) {
    _options.logger(
      SentryLevel.warning,
      "Instance is disabled and this 'bindClient' call is a no-op.",
    );
  } else {
    final item = _peek();
    _options.logger(SentryLevel.debug, 'New client bound to scope.');
    item.client = client;
  }
}