DVPageMfa class

Answers whether this device's session may open a page, for the generated router.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

check(Object? context, Object? state, DVMfa policy) → Future<String?>
The route to redirect to, or null to let the page render.
recent(Object? context, Object? state, Duration window) → Future<String?>
check for @DVPage(mfa: DVMfa.recent(window)).
required(Object? context, Object? state) → Future<String?>
check for @DVPage(mfa: DVMfa.required), as the generated router calls it.
safeReturn(String? from) → String
Where a completed challenge goes: from when it is a path in this application, otherwise /.