switchAppId method

  1. @override
ShopFrontEntity switchAppId({
  1. required String newAppId,
})
override

Implementation

@override
ShopFrontEntity switchAppId({required String newAppId}) {
  var newEntity = copyWith(appId: newAppId);
  newEntity = newEntity.copyWith(
      buyAction:
          buyAction == null ? null : buyAction!.copyWith(appId: newAppId),
      openProductAction: openProductAction == null
          ? null
          : openProductAction!.copyWith(appId: newAppId));
  return newEntity;
}