SendbirdSdkInternal constructor Null safety

SendbirdSdkInternal(
  1. {String? appId,
  2. String? apiToken,
  3. Options? options}
)

Implementation

SendbirdSdkInternal({
  String? appId,
  String? apiToken,
  Options? options,
}) {
  // _api.initialize(appId: appId, token: apiToken);
  _state
    ..appId = appId
    ..token = apiToken;

  _options = options ?? Options();
  _api = ApiClient(state: _state, appId: appId, token: apiToken);

  _connectionResult = ConnectivityResult.none;
  _listenConnectionEvents();
}