type for function that receives inference result from Rhino
typedef InferenceCallback(Map<String, dynamic> inference);