Selector<T> constructor

const Selector<T>({
  1. Key? key,
  2. required List<T> items,
  3. required Widget itemBuilder(
    1. T data
    ),
  4. Widget buttonBuilder(
    1. int i,
    2. T data
    )?,
  5. T? initial,
  6. void onSelected(
    1. T
    )?,
  7. GlobalKey<State<StatefulWidget>>? buttonKey,
  8. Alignment alignment = Alignment.topCenter,
  9. Duration? debounce,
  10. double width = 260,
  11. EdgeInsets margin = EdgeInsets.zero,
  12. required bool isMobile,
  13. void onPointerUp(
    1. BuildContext
    )? = _popNavigator,
})

Implementation

const Selector({
  super.key,
  required this.items,
  required this.itemBuilder,
  this.buttonBuilder,
  this.initial,
  this.onSelected,
  this.buttonKey,
  this.alignment = Alignment.topCenter,
  this.debounce,
  this.width = 260,
  this.margin = EdgeInsets.zero,
  required this.isMobile,
  this.onPointerUp = _popNavigator,
});