AttachmentConfig constructor
const
AttachmentConfig({
- dynamic onCameraFilesPicked()?,
- dynamic onGalleryFilesPicked()?,
- dynamic onAudioFilesPicked()?,
- dynamic onDocFilerPicked()?,
- void onContactPicked()?,
- Color backgroundColor = Colors.white,
- Color iconColor = Colors.black,
- Color textColor = Colors.black,
- Color iconBackgroundColor = const Color(0xFFE0E0E0),
- bool showCamera = true,
- bool showGallery = true,
- bool showAudio = true,
- bool showDoc = true,
- 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,
});