LevelsPicker<T extends LevelsBaseModel> constructor

LevelsPicker<T extends LevelsBaseModel>({
  1. Key? key,
  2. List<T> items = const [],
  3. double height = 320,
  4. double headerHeight = 48,
  5. double sectionHeight = 44,
  6. double pageHeight = 200,
  7. ShowLevelType levelStepStype = ShowLevelType.showLevels,
  8. ShowPickExtendsUI levelExtendsUI = ShowPickExtendsUI.extendsNone,
  9. int maxLevel = 0,
  10. ValueChanged? callBack,
  11. VoidCallback? warningCallBack,
  12. String warningStr = '',
  13. bool editStatus = false,
  14. List<T> cacheItems = const [],
  15. List<List<T>> cachePageItems = const [],
  16. bool isAutoClose = true,
  17. WidgetBuilder? builderHeader,
  18. bool hideHeader = false,
  19. Decoration? headerDecoration,
  20. Widget? title,
  21. Widget? cancel,
  22. String cancelText = '',
  23. TextStyle? cancelTextStyle,
  24. Widget? confirm,
  25. String confirmText = '',
  26. TextStyle? confirmTextStyle,
  27. Color? headerColor,
  28. double itemExtent = 0.0,
  29. TextStyle? textStyle,
  30. TextStyle? selectedTextStyle,
  31. VoidCallback? onCancel,
  32. PickerConfirmCallback? onConfirm,
  33. PickerConfirmBeforeCallback? onConfirmBefore,
  34. PickerSelectedCallback? onSelect,
  35. Widget? builderFooter,
  36. bool hideFooter = true,
  37. bool isCircleCorner = false,
  38. required PickerLevelAdapter<T> adapter,
})

Implementation

LevelsPicker(
    {Key? key,
    this.items = const [],
    this.height = 320,
    this.headerHeight = 48,
    this.sectionHeight = 44,
    this.pageHeight = 200,
    this.levelStepStype = ShowLevelType.showLevels,
    this.levelExtendsUI = ShowPickExtendsUI.extendsNone,
    this.maxLevel = 0,
    this.callBack,
    this.warningCallBack,
    this.warningStr = '',
    this.editStatus = false,
    this.cacheItems = const [],
    this.cachePageItems = const [],
    this.isAutoClose = true,
    this.builderHeader,
    this.hideHeader = false,
    this.headerDecoration,
    this.title,
    this.cancel,
    this.cancelText = '',
    this.cancelTextStyle,
    this.confirm,
    this.confirmText = '',
    this.confirmTextStyle,
    this.headerColor,
    this.itemExtent = 0.0,
    this.textStyle,
    this.selectedTextStyle,
    this.onCancel,
    this.onConfirm,
    this.onConfirmBefore,
    this.onSelect,
    this.builderFooter,
    this.hideFooter = true,
    this.isCircleCorner = false,
    required this.adapter})
    : super(key: key);