Picker constructor
const
Picker({
- Key? key,
- List<
PickerItem> ? colums, - bool showToolbar = false,
- String toolbarPosition = "top",
- String? title,
- bool loading = false,
- double itemHeight = 44.0,
- String confirmButtonText = "确认",
- String cancelButtonText = "取消",
- dynamic defaultIndex,
- int level = 1,
- dynamic onConfirm()?,
- dynamic onCancel()?,
- dynamic onChange()?,
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);