MultiWidgetViewerScreen constructor

const MultiWidgetViewerScreen({
  1. Key? key,
  2. required List<WidgetViewData> children,
  3. int selectedIndex = 0,
  4. void onPageChanged(
    1. int
    )?,
  5. Color? dotColor,
  6. Color? activeDotColor,
  7. void onMenuTap(
    1. int currentPageIndex
    )?,
  8. bool smoothFirstColorUpdate = false,
})

Implementation

const MultiWidgetViewerScreen({
  Key? key,
  required this.children,
  this.selectedIndex = 0,
  this.onPageChanged,
  this.dotColor,
  this.activeDotColor,
  this.onMenuTap,
  this.smoothFirstColorUpdate = false,
})  : assert(children.length > 0),
      super(key: key);