IndexedSlot 構造体
複数の子を持つ親が、それぞれの子Elementへ割り当てるSlotの値です。
名前空間: FloatSoda.Elements
アセンブリ: FloatSoda.dll
public readonly record struct IndexedSlot : IEquatable<IndexedSlot>実装するインターフェイス
Section titled “実装するインターフェイス”継承したメンバー
Section titled “継承したメンバー”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
子のRenderObjectは、PreviousのRenderObjectの次へ挿入されます。
位置が同じでも直前の兄弟が入れ替わればslotは等しくなくなり、RenderObjectの移動が起きます。
FlutterのIndexedSlotに対応します。
コンストラクター
Section titled “コンストラクター”IndexedSlot(int, Element?)
Section titled “IndexedSlot(int, Element?)”複数の子を持つ親が、それぞれの子Elementへ割り当てるSlotの値です。
public IndexedSlot(int Index, Element? Previous)パラメーター
Section titled “パラメーター”Index int
親の子リストの中での位置。
Previous Element?
直前の兄弟Element。先頭の子ではnull。
子のRenderObjectは、PreviousのRenderObjectの次へ挿入されます。
位置が同じでも直前の兄弟が入れ替わればslotは等しくなくなり、RenderObjectの移動が起きます。
FlutterのIndexedSlotに対応します。
親の子リストの中での位置。
public int Index { get; init; }プロパティの値
Section titled “プロパティの値”Previous
Section titled “Previous”直前の兄弟Element。先頭の子ではnull。
public Element? Previous { get; init; }