pure property
Pure
get
pure
Implementation
Pure get pure {
_pure ??= createPure((dynamic value) {
if (value is SerializedBcs) {
return _blockData.addInput('pure', {
'\$kind': 'Pure',
'Pure': {
'bytes': value.toBase64(),
},
});
}
if (value is Map && (value['Object'] != null || value['Pure'] != null)) {
return _blockData.addInput('pure', value['Object'] ?? value['Pure']);
} else if (value is Uint8List) {
return _blockData.addInput('pure', Inputs.pure(value));
} else {
return _blockData.addInput('pure', {
'\$kind': 'UnresolvedPure',
'UnresolvedPure': {'value': value},
});
}
});
return _pure!;
}