LazyLoadIndexedStack constructor

LazyLoadIndexedStack({
  1. Key? key,
  2. Widget? unloadWidget,
  3. AlignmentGeometry alignment = AlignmentDirectional.topStart,
  4. StackFit sizing = StackFit.loose,
  5. TextDirection? textDirection,
  6. required int index,
  7. required List<Widget> children,
})

Creates LazyLoadIndexedStack that wraps IndexedStack.

Implementation

LazyLoadIndexedStack({
  Key? key,
  Widget? unloadWidget,
  this.alignment = AlignmentDirectional.topStart,
  this.sizing = StackFit.loose,
  this.textDirection,
  required this.index,
  required this.children,
}) : super(key: key) {
  this.unloadWidget = unloadWidget ?? Container();
}