ComponentKey class

A key that can be used to identify a component and later retrieve it from its FlameGame ancestor.

Annotations

Constructors

ComponentKey.named(String name)
Creates a key that is equal to keys with the same name.
ComponentKey.unique()
Creates a key that is unique, each instance will only be equal to itself.

Properties

hashCode int
The hash code for this object.
no setteroverride
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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override