methodsHandler static method
Implementation
static Future<dynamic> methodsHandler(MethodCall methodCall) async {
switch (methodCall.method) {
case 'onToken':
var token = methodCall.arguments;
Pam.setPushNotificationToken(token);
Pam.shared._onToken?.call(token);
return '';
default:
return '';
}
}