nonceCast static method

Nonce nonceCast(
  1. List nonce
)

Nonce from List

Implementation

static Nonce nonceCast(List<dynamic> nonce) {
  var nListInt = <int>[];
  for (var i in nonce) {
    if (i.runtimeType == int) {
      nListInt.add(i);
    } else {
      nListInt.add(int.parse(i));
    }
  }
  return Nonce(nListInt);
}