FlutterChainService constructor

FlutterChainService({
  1. required JsVMService jsVMService,
  2. required NearBlockChainService nearBlockchainService,
  3. required BitcoinBlockChainService bitcoinBlockchainService,
})

Implementation

FlutterChainService(
    {required this.jsVMService,
    required final NearBlockChainService nearBlockchainService,
    required final BitcoinBlockChainService bitcoinBlockchainService}) {
  //Add blockChainServices
  blockchainServices.putIfAbsent(
      BlockChains.near, () => nearBlockchainService);
  blockchainServices.putIfAbsent(
      BlockChains.bitcoin, () => bitcoinBlockchainService);
}