KntGeneralPicker<T> constructor

const KntGeneralPicker<T>({
  1. Key? key,
  2. required Widget presentItem,
  3. required List<T> options,
  4. required String onConversion(
    1. T
    ),
  5. T? starterOption,
  6. void onPickedOption(
    1. int,
    2. T
    )?,
  7. double? menuMaxHeight,
  8. double? menuOptionWidth,
  9. double? menuOptionHeight,
  10. EdgeInsets? menuOptionPadding,
  11. bool needAnimate = false,
})

Implementation

const KntGeneralPicker({
  super.key,
  required this.presentItem,
  required this.options,
  required this.onConversion,
  this.starterOption,
  this.onPickedOption,
  this.menuMaxHeight,
  this.menuOptionWidth,
  this.menuOptionHeight,
  this.menuOptionPadding,
  this.needAnimate = false,
});