handleMethod method

void handleMethod(
  1. MethodCall call
)

This function handles different types of listeners based on the method call received.

Implementation

void handleMethod(MethodCall call) async {
  var methodPath = call.method.split('#');
  var listenerName = methodPath[1];

  if (listenerName == 'InjectorListener') {
    _handleListenerMethod(call);
    return;
  }

  if (_inApp.handlesListener(listenerName)) {
    _inApp.handleMethod(call);
    return;
  }
}