AttachmentConfig constructor

const AttachmentConfig({
  1. dynamic onCameraFilesPicked(
    1. List<File>
    )?,
  2. dynamic onGalleryFilesPicked(
    1. List<File>
    )?,
  3. dynamic onAudioFilesPicked(
    1. List<File>
    )?,
  4. dynamic onDocFilerPicked(
    1. List<File>
    )?,
  5. void onContactPicked(
    1. Map<String, dynamic>
    )?,
  6. Color backgroundColor = Colors.white,
  7. Color iconColor = Colors.black,
  8. Color textColor = Colors.black,
  9. Color iconBackgroundColor = const Color(0xFFE0E0E0),
  10. bool showCamera = true,
  11. bool showGallery = true,
  12. bool showAudio = true,
  13. bool showDoc = true,
  14. bool showContact = true,
})

Implementation

const AttachmentConfig({
  this.onCameraFilesPicked,
  this.onGalleryFilesPicked,
  this.onAudioFilesPicked,
  this.onDocFilerPicked,
  this.onContactPicked,
  this.backgroundColor = Colors.white,
  this.iconColor = Colors.black,
  this.textColor = Colors.black,
  this.iconBackgroundColor = const Color(0xFFE0E0E0),
  this.showCamera = true,
  this.showGallery = true,
  this.showAudio = true,
  this.showDoc = true,
  this.showContact = true,
});