SorobanServer.withDio constructor

  1. @visibleForTesting
SorobanServer.withDio(
  1. String _serverUrl,
  2. Dio _dio
)

Constructor for testing with a custom Dio instance.

Implementation

@visibleForTesting
SorobanServer.withDio(this._serverUrl, this._dio) {
  _headers = {...RequestBuilder.headers};
  _headers.putIfAbsent("Content-Type", () => "application/json");
}