getLocalInt method
Implementation
int? getLocalInt(String identifier, [int defaultValue = 0]) {
var result = ValuePointer<Value>();
if (variables != null &&
variables!.tryGetValueWithIdentifier(identifier, result)) {
if (result.value == null) {
return 0; // variable found, but its value was null!
}
return result.value?.intValue();
}
return defaultValue;
}