handleMethod method
This function handles a specific method call and invokes a listener method if it matches certain criteria.
Implementation
void handleMethod(MethodCall call) {
var methodPath = call.method.split('#');
var listenerName = methodPath[1];
var listenerMethodName = methodPath[2];
if (listenerName == 'NotificationsListener' &&
listenerMethodName == 'onRegistrationRequired') {
if (_listener.onRegistrationRequired != null) {
_listener.onRegistrationRequired!();
}
}
}