TCRItemPicker constructor

TCRItemPicker({
  1. int initialIndex = 0,
  2. String title = _defaultTitle,
  3. double? height,
  4. List<String> items = const [],
  5. ItemPickerCallback? callback,
})

Implementation

TCRItemPicker({
  this.initialIndex = 0,
  this.title = _defaultTitle,
  this.height,
  this.items = const [],
  this.callback,
}) : super() {
  assert(initialIndex < items.length, 'TCRItemPicker 参数错误');
}