NsgFilePickerProvider constructor
const
NsgFilePickerProvider({
- List<
String> allowedImageFormats = const ['jpeg', 'jpg', 'gif', 'png', 'bmp'], - List<
String> allowedVideoFormats = const ['mp4', 'mov'], - List<
String> allowedFileFormats = const ['doc', 'docx', 'rtf', 'xls', 'xlsx', 'pdf', 'rtf'], - double imageMaxWidth = 1200.0,
- double imageMaxHeight = 1200.0,
- int imageQuality = 70,
- double fileMaxSize = 10000000.0,
- bool ignoreMaxSize = false,
- String savePrefix = 'NsgFile',
- int maxFilesCount = 0,
- 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,
});