define method

void define(
  1. String path,
  2. HandlerFunc handlerFunc, {
  3. TransitionType? transitionType,
})

路径与页匹配

Implementation

void define(String path, HandlerFunc handlerFunc,
    {TransitionType? transitionType}) {
  router.define(
    path,
    handler: Handler(handlerFunc: handlerFunc),
    transitionType: transitionType,
  );
}