idToValue static method

String? idToValue(
  1. Iterable<Object?> identList,
  2. int tokenId
)

Implementation

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

  return null;
}