WebsiteFlutterIntegration constructor

WebsiteFlutterIntegration({
  1. Iterable<WebsiteFlutterComponent>? viewComponents,
  2. Iterable<String>? basketCountSelectors,
  3. Iterable<String>? addToBasketSelectors,
  4. Iterable<String>? likeButtonSelectors,
})

Implementation

factory WebsiteFlutterIntegration({
  $core.Iterable<WebsiteFlutterComponent>? viewComponents,
  $core.Iterable<$core.String>? basketCountSelectors,
  $core.Iterable<$core.String>? addToBasketSelectors,
  $core.Iterable<$core.String>? likeButtonSelectors,
}) {
  final result = create();
  if (viewComponents != null) result.viewComponents.addAll(viewComponents);
  if (basketCountSelectors != null)
    result.basketCountSelectors.addAll(basketCountSelectors);
  if (addToBasketSelectors != null)
    result.addToBasketSelectors.addAll(addToBasketSelectors);
  if (likeButtonSelectors != null)
    result.likeButtonSelectors.addAll(likeButtonSelectors);
  return result;
}