KeyedStack<T> constructor
KeyedStack<T> ({
- Key? key,
- AlignmentGeometry alignment = AlignmentDirectional.topStart,
- TextDirection? textDirection,
- StackFit sizing = StackFit.loose,
- required T itemKey,
- required Map<
T, Widget> children,
Implementation
KeyedStack({
super.key,
super.alignment,
super.textDirection,
super.sizing,
required T itemKey,
required Map<T, Widget> children,
}) : super(
index: max(children.keys.toList(growable: false).indexOf(itemKey), 0),
children: children.values.toList(growable: false),
);