affectedRoutePaths method

List<String> affectedRoutePaths()

Returns the route paths that should be invalidated.

Implementation

List<String> affectedRoutePaths() => [
  '/products/$slug',
  if (categorySlug != null) '/categories/$categorySlug',
];