DefaultGlobalKey

class DefaultGlobalKey(val key: Int, val position: Int, val parent: GlobalKey?) : GlobalKey

Memory-efficient linked structure for auto-generated keys. Used when the config flag is on and no manual key is present in the ancestry.

key is the component's typeId, position is the sibling index (0 = first of this type).

buildKeyString produces the same format as the current string concatenation: "parentKey,typeId" for position 0, "parentKey,typeId!N" for position N 0.

Constructors

Link copied to clipboard
constructor(key: Int, position: Int, parent: GlobalKey?)

Properties

Link copied to clipboard
open override val key: Int
Link copied to clipboard
val parent: GlobalKey? = null
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard

Returns true if this key equals ancestor or is a descendant of it.

Link copied to clipboard
open override fun toString(): String