CascadeSelectWidget<T> constructor

CascadeSelectWidget<T>({
  1. Key? key,
  2. required int columnNum,
  3. required Future<List<T>> buildPickData(
    1. int columnIndex,
    2. int lastColumnIndex
    ),
  4. PickResultCallback<T>? resultCallback,
  5. required BuildItem<T> buildItem,
  6. List<int>? initIndex,
  7. PickerStyle? pickerStyle,
})

Implementation

CascadeSelectWidget(
    {Key? key,
    required this.columnNum,
    required this.buildPickData,
    this.resultCallback,
    required this.buildItem,
    this.initIndex,
    PickerStyle? pickerStyle})
    : assert(columnNum != null),
      assert(buildPickData != null),
      assert(buildItem != null),
      super(key: key) {
  this.pickerStyle = pickerStyle ?? PickerStyle.defaultStyle();
}