go static method

void go(
  1. String routeName, {
  2. Object? extra,
})

直接跳转 (清除之前的路由栈)

Implementation

static void go(String routeName, {Object? extra}) {
  if (context != null) {
    context!.go(routeName, extra: extra);
  }
}