SessionLocaleResolver class

Resolves a locale from a session value.

If the request has no session integration, or the key is absent, this resolver returns null. Values are passed through sanitizeLocale.

Implemented types

Constructors

SessionLocaleResolver({required String sessionKey})
Creates a resolver for the locale sessionKey.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionKey → String
Key containing the requested locale in the current session.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(LocaleResolutionContext context) → String?
Attempts to resolve one locale from context.
override
toString() → String
A string representation of this object.
inherited

Operators

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