onShoppingSecondaryCTA property
This callback is triggered when the user clicks secondary CTA in Firework in-stream PDP.
The host app can customize the click event processing logic of the secondary CTA by setting the callback.
Implementation
ShoppingSecondaryCTACallback? get onShoppingSecondaryCTA =>
_onShoppingSecondaryCTA;
Implementation
set onShoppingSecondaryCTA(ShoppingSecondaryCTACallback? value) {
_onShoppingSecondaryCTA = value;
final nativeMethodName =
ShoppingNativeMethodName.setCustomSecondaryCTAEnabled.name;
FWMethodChannelUtil.getShoppingChannel().invokeMethod(
nativeMethodName,
value != null,
);
}