setApi method

void setApi(
  1. BlockchainUtilsApi api, {
  2. bool seal = false,
})

Sets the active BlockchainUtilsApi implementation directly.

Implementation

void setApi(BlockchainUtilsApi api, {bool seal = false}) {
  _checkNotSealed('setApi');
  _api = api;
  if (seal) {
    this.seal();
  }
}