getInputOf method
Returns the data for the input asset that generated a specific output.
id is the ID of the output asset.
Returns null if the asset is not a generated output.
Implementation
List<dynamic>? getInputOf(String id) {
for (final MapEntry<String, Set<String>> entry in outputs.entries) {
if (entry.value.contains(id)) {
return assets[entry.key];
}
}
return null;
}