getConstantInfo method
Get constant info without decoding the value This is very lightweight as it doesn't decode the actual constant value
Implementation
ConstantInfo? getConstantInfo(String palletName, String constantName) {
// Load metadata for pallet if not cached
if (!_metadataCache.containsKey(palletName)) {
_loadPalletMetadata(palletName);
}
return _metadataCache[palletName]?[constantName];
}