ShareSheet constructor

const ShareSheet({
  1. Key? key,
  2. required List<ShareSheetItem> options,
  3. String? title,
  4. String? cancelText = '取消',
  5. String? description,
  6. bool? wrap = false,
  7. int wrapNumber = 4,
  8. bool closeOnClickOverlay = true,
  9. dynamic onSelect(
    1. ShareSheetItem option,
    2. int index
    )?,
  10. dynamic onCancel()?,
})

Implementation

const ShareSheet(
    {Key? key,
    required this.options,
    this.title,
    this.cancelText: '取消',
    this.description,
    this.wrap: false,
    this.wrapNumber: 4,
    this.closeOnClickOverlay: true,
    this.onSelect,
    this.onCancel});