setIntermediateCallback method

void setIntermediateCallback(
  1. dynamic callback(
    1. String
    )
)

Implementation

void setIntermediateCallback(Function(String) callback){
  if (!available) {
    throw Exception("Model not opened yet. wait one second and try again.");
  }
  callbacks[classId] = callback;
}