GlobalContext class
Merges a fixed set of context values into every message. App-level context
(app_version, environment, …) is a good fit. Message-level context wins
over these defaults.
- Implemented types
Constructors
-
GlobalContext(Map<
String, Object?> context) -
Creates the middleware with the
contextto merge in.
Properties
Methods
-
apply(
LiquidMessage message) → LiquidMessage -
Transforms
message, or returnsnullto drop it.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