onShoppingSecondaryCTA property

ShoppingSecondaryCTACallback? get onShoppingSecondaryCTA

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;
set onShoppingSecondaryCTA (ShoppingSecondaryCTACallback? value)

Implementation

set onShoppingSecondaryCTA(ShoppingSecondaryCTACallback? value) {
  _onShoppingSecondaryCTA = value;
  final nativeMethodName =
      ShoppingNativeMethodName.setCustomSecondaryCTAEnabled.name;
  FWMethodChannelUtil.getShoppingChannel().invokeMethod(
    nativeMethodName,
    value != null,
  );
}