LevelsPicker<T extends LevelsBaseModel> constructor
LevelsPicker<T extends LevelsBaseModel> ({
- Key? key,
- List<
T> items = const [], - double height = 320,
- double headerHeight = 48,
- double sectionHeight = 44,
- double pageHeight = 200,
- ShowLevelType levelStepStype = ShowLevelType.showLevels,
- ShowPickExtendsUI levelExtendsUI = ShowPickExtendsUI.extendsNone,
- int maxLevel = 0,
- ValueChanged? callBack,
- VoidCallback? warningCallBack,
- String warningStr = '',
- bool editStatus = false,
- List<
T> cacheItems = const [], - List<
List< cachePageItems = const [],T> > - bool isAutoClose = true,
- WidgetBuilder? builderHeader,
- bool hideHeader = false,
- Decoration? headerDecoration,
- Widget? title,
- Widget? cancel,
- String cancelText = '',
- TextStyle? cancelTextStyle,
- Widget? confirm,
- String confirmText = '',
- TextStyle? confirmTextStyle,
- Color? headerColor,
- double itemExtent = 0.0,
- TextStyle? textStyle,
- TextStyle? selectedTextStyle,
- VoidCallback? onCancel,
- PickerConfirmCallback? onConfirm,
- PickerConfirmBeforeCallback? onConfirmBefore,
- PickerSelectedCallback? onSelect,
- bool isCircleCorner = false,
- 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);