HandlerRef class
A serializable reference to another Handler.
Container handlers (see ContainerHandler) store HandlerRefs instead of raw data, keeping the document storage flat: every handler lives in the document registry keyed by its id, and a parent points to a child by id.
The type is the child handler's Handler.handlerType, which is the key used to look up a HandlerSpec when reconstructing the tree on a remote peer.
Constructors
- HandlerRef(String id, String type)
-
Creates a reference to the handler with the given
idandtype.const - HandlerRef.of(Handler handler)
-
Builds a reference pointing at
handler.factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
The referenced handler's unique id.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The kind of the referenced handler; see Handler.handlerType.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override