ZenithKey<T> class

A strongly typed identifier for nodes managed by a ZenithContainer.

Equality (and hashCode) is based on both the type parameter T and an optional name label, so ZenithKey<int>('count') and ZenithKey<String>('count') never collide even though they share a name.

Constructors

ZenithKey([String name = ''])
Creates a ZenithKey, optionally with a name label.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
name → String
An optional name label to disambiguate keys of the same type.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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