idToValue static method

String? idToValue(
  1. dynamic identList,
  2. int tokenId
)

Implementation

static String? idToValue(var identList, int tokenId) {
  for (var entry in identList) {
    if (tokenId == entry['type']) {
      return entry['value'] as String?;
    }
  }

  return null;
}