methodHandler method
Implementation
Future<void> methodHandler(MethodCall call) async {
switch (call.method) {
case "onNotificationContentClick":
final callCid = call.arguments;
onContentClick?.call(callCid);
break;
case "onNotificationButtonClick":
final buttonType = call.arguments[0];
final callCid = call.arguments[1];
onButtonClick?.call(buttonType, callCid);
break;
case "onPlatformUiLayerDestroyed":
final callCid = call.arguments;
onUiLayerDestroyed?.call(callCid);
break;
}
}