コンテンツにスキップ

IndexedSlot 構造体

複数の子を持つ親が、それぞれの子Elementへ割り当てるSlotの値です。

名前空間: FloatSoda.Elements
アセンブリ: FloatSoda.dll

public readonly record struct IndexedSlot : IEquatable<IndexedSlot>

IEquatable<IndexedSlot>

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

子のRenderObjectは、PreviousのRenderObjectの次へ挿入されます。 位置が同じでも直前の兄弟が入れ替わればslotは等しくなくなり、RenderObjectの移動が起きます。 FlutterのIndexedSlotに対応します。

複数の子を持つ親が、それぞれの子Elementへ割り当てるSlotの値です。

public IndexedSlot(int Index, Element? Previous)

Index int

親の子リストの中での位置。

Previous Element?

直前の兄弟Element。先頭の子ではnull。

子のRenderObjectは、PreviousのRenderObjectの次へ挿入されます。 位置が同じでも直前の兄弟が入れ替わればslotは等しくなくなり、RenderObjectの移動が起きます。 FlutterのIndexedSlotに対応します。

親の子リストの中での位置。

public int Index { get; init; }

int

直前の兄弟Element。先頭の子ではnull。

public Element? Previous { get; init; }

Element?