GuardResult.redirect constructor

GuardResult.redirect(
  1. 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);