getNetworkIdentifier method

Future<void> getNetworkIdentifier()

Implementation

Future<void> getNetworkIdentifier() async {
  var networkList = await networksList();
  networkIdentifier = (networkList.network_identifiers).singleWhere(
      (rosetta.NetworkIdentifier id) => id.blockchain == 'Internet Computer',
      orElse: () => throw 'No Identifier found');
}