Picker constructor

const Picker({
  1. Key? key,
  2. List<PickerItem>? colums,
  3. bool showToolbar = false,
  4. String toolbarPosition = "top",
  5. String? title,
  6. bool loading = false,
  7. double itemHeight = 44.0,
  8. String confirmButtonText = "确认",
  9. String cancelButtonText = "取消",
  10. dynamic defaultIndex,
  11. int level = 1,
  12. dynamic onConfirm(
    1. List<String?> selectedValues,
    2. dynamic selectedIndex
    )?,
  13. dynamic onCancel(
    1. List<String?> selectedValues,
    2. dynamic selectedIndex
    )?,
  14. dynamic onChange(
    1. List<String?> selectedValues,
    2. dynamic selectedIndex
    )?,
})

Implementation

const Picker(
    {Key? key,
    this.colums,
    this.showToolbar: false,
    this.toolbarPosition: "top",
    this.title,
    this.loading: false,
    this.itemHeight: 44.0,
    this.confirmButtonText: "确认",
    this.cancelButtonText: "取消",
    this.defaultIndex,
    this.level: 1,
    this.onConfirm,
    this.onCancel,
    this.onChange})
    : super(key: key);