attach<T> method
T
attach<T>(
- T value
Attaches a contextual value to this instance and returns the value.
The type of T is the signature/key, attaching more than one thing of
the same will only store the last one.
Implementation
T attach<T>(T value) {
final key = T.runtimeType.toString();
_context[key] = value;
return value;
}