setMethodCall method

void setMethodCall(
  1. List<String> methods,
  2. dynamic callMethod(
    1. dynamic arguments
    )
)

Implementation

void setMethodCall(List<String> methods, Function(dynamic arguments) callMethod) {
  if (methods.isNotEmpty) {
    for (String method in methods) {
      _methodMap[method] = callMethod;
    }
  }
}