RouteVNodeFactory typedef

VNode RouteVNodeFactory (
  1. Map<String, String> params
)

RouteVNodeFactory is a factory that returns a given component that pairs to a given path. The factory functions is called with params, which is a map of variables found in the path.

For example, if a Routes path is /foo/:var1/:var2 and the current url is /foo/bar/baz, then the params map would be {var1: 'bar', var2: 'baz'}

Implementation

typedef VNode RouteVNodeFactory(Map<String, String> params);