NsgFilePickerProvider constructor

const NsgFilePickerProvider({
  1. List<String> allowedImageFormats = const ['jpeg', 'jpg', 'gif', 'png', 'bmp'],
  2. List<String> allowedVideoFormats = const ['mp4', 'mov'],
  3. List<String> allowedFileFormats = const ['doc', 'docx', 'rtf', 'xls', 'xlsx', 'pdf', 'rtf'],
  4. double imageMaxWidth = 1200.0,
  5. double imageMaxHeight = 1200.0,
  6. int imageQuality = 70,
  7. double fileMaxSize = 10000000.0,
  8. bool ignoreMaxSize = false,
  9. String savePrefix = 'NsgFile',
  10. int maxFilesCount = 0,
  11. NsgFilePickerObjectType mobileSelectionType = NsgFilePickerObjectType.image,
})

Implementation

const NsgFilePickerProvider({
  this.allowedImageFormats = const ['jpeg', 'jpg', 'gif', 'png', 'bmp'],
  this.allowedVideoFormats = const ['mp4', 'mov'],
  this.allowedFileFormats = const ['doc', 'docx', 'rtf', 'xls', 'xlsx', 'pdf', 'rtf'],
  this.imageMaxWidth = 1200.0,
  this.imageMaxHeight = 1200.0,
  this.imageQuality = 70,
  this.fileMaxSize = 10000000.0,
  this.ignoreMaxSize = false,
  this.savePrefix = 'NsgFile',
  this.maxFilesCount = 0,
  this.mobileSelectionType = NsgFilePickerObjectType.image,
});