toLogin function

Future<bool> toLogin()

导航到默认的登录页面

Implementation

Future<bool> toLogin() async {
  final success = (await toNamed(routesLoginNamed)) ?? false;
  return success;
}