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