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

except → Set<String>
Keys left as sent.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

handle(Request request, Next next) → Future<Response>
Handles request: return a response, or call next to 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