PrismFilePickerTile constructor

const PrismFilePickerTile({
  1. Key? key,
  2. required List<PrismPickedFile> files,
  3. required Future<List<PrismPickedFile>?> onPick(),
  4. required ValueChanged<List<PrismPickedFile>> onFilesPicked,
  5. ValueChanged<PrismPickedFile>? onRemove,
  6. String label = 'Attachments',
  7. String emptyHint = 'Tap to attach files',
  8. PrismPickerConstraints constraints = const PrismPickerConstraints(),
  9. Widget? trailing,
})

Creates a file picker tile.

Implementation

const PrismFilePickerTile({
  super.key,
  required this.files,
  required this.onPick,
  required this.onFilesPicked,
  this.onRemove,
  this.label = 'Attachments',
  this.emptyHint = 'Tap to attach files',
  this.constraints = const PrismPickerConstraints(),
  this.trailing,
});