PRODUCT static method

String PRODUCT(
  1. String barcode, {
  2. bool useHeroAnimation = true,
  3. String? heroTag = '',
  4. BackButtonType? backButtonType,
  5. ProductPageTransition? transition = ProductPageTransition.standard,
})

Implementation

static String PRODUCT(
  String barcode, {
  bool useHeroAnimation = true,
  String? heroTag = '',
  BackButtonType? backButtonType,
  ProductPageTransition? transition = ProductPageTransition.standard,
}) =>
    '/${_InternalAppRoutes.PRODUCT_DETAILS_PAGE}/${Uri.encodeComponent(barcode)}'
    '?heroAnimation=$useHeroAnimation'
    '&heroTag=${Uri.encodeQueryComponent(heroTag ?? '')}'
    '&backButtonType=${Uri.encodeQueryComponent(backButtonType?.name ?? '')}'
    '&transition=${Uri.encodeQueryComponent(transition?.name ?? '')}';