decodeKey method

AbstractKey<Comparable> decodeKey(
  1. AbstractKey<Comparable> type,
  2. dynamic key
)

Implementation

AbstractKey decodeKey(AbstractKey type, dynamic key) {
  if (key is String) {
    key = revertStripReservedCharacter(key);
  }
  if (type is ViewKeyMetaKey) {
    return type.copyWithKey(newKey: ViewKeyMeta.decode(key));
  }
  return type.copyWithKey(newKey: key);
}