getInstance method
getInstance will be used to have directly access to Agent
instances Objects. it should just used to get method but not to execute.
Implementation
Actor? getInstance(String action, {Map<String, dynamic> data = const {}}) {
if (action == "this") return this;
return null;
}