GuardResult.redirect constructor
GuardResult.redirect(
- String path
Creates a guard result that cancels the current navigation and redirects to path.
Implementation
factory GuardResult.redirect(String path) =>
GuardResult._(isAllowed: false, redirectPath: path);