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 context to merge in.

Properties

context Map<String, Object?>
The context values to merge into every message.
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

apply(LiquidMessage message) LiquidMessage
Transforms message, or returns null to 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