cartIconVisible property
Defaults to true. You can hide the cart icon by setting this property to false.
Implementation
bool get cartIconVisible => _cartIconVisible;
Implementation
set cartIconVisible(bool cartIconVisible) {
_cartIconVisible = cartIconVisible;
final nativeMethodName = ShoppingNativeMethodName.setCartIconVisible.name;
if (FWGlobalState.getInstance().sdkInitSucceeded) {
FWMethodChannelUtil.getShoppingChannel().invokeMethod(
nativeMethodName,
cartIconVisible,
);
} else {
FWGlobalState.getInstance().sdkInitSucceededFuture.then((_) {
FWMethodChannelUtil.getShoppingChannel().invokeMethod(
nativeMethodName,
cartIconVisible,
);
});
}
}