redirect abstract method

FutureOr<RouteQuery> redirect(
  1. BuildContext context,
  2. RouteQuery source
)

Reroute to the page by returning a new RouteQuery based on the RouteQuery and other information given in the source of the redirect method.

redirectメソッドのsourceで与えられたRouteQueryとその他の情報を元に新しいRouteQueryを返すことでそのページにリルートします。

Implementation

FutureOr<RouteQuery> redirect(BuildContext context, RouteQuery source);