IndexedSlot<T> class

A value for Element.slot used for children of MultiChildRenderObjectElements.

A slot for a MultiChildRenderObjectElement consists of an index identifying where the child occupying this slot is located in the MultiChildRenderObjectElement's child list and an arbitrary value that can further define where the child occupying this slot fits in its parent's child list.

See also:

Annotations
  • @immutable

Constructors

IndexedSlot(int index, T value)
Creates an IndexedSlot with the provided index and slot value.
const

Properties

hashCode int
The hash code for this object. [...]
read-only, override
index int
The index of this slot in the parent's child list.
final
value → T
Information to define where the child occupying this slot fits in its parent's child list.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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