TrimStringsMiddleware class final
Trims surrounding whitespace from every string input, except the keys
listed in except (Laravel's TrimStrings, which skips passwords).
- Implemented types
Constructors
-
TrimStringsMiddleware({Set<
String> except = const <String>{'password', 'password_confirmation'}}) -
Trims every string in the input, except the given keys (passwords by
default).
const
Properties
Methods
-
handle(
Request request, Next next) → Future< Response> -
Handles
request: return a response, or callnextto continue.override -
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