getInstance method

Actor? getInstance(
  1. String action, {
  2. Map<String, dynamic> data = const {},
})

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;
}