UserFlowFileRequirement constructor
UserFlowFileRequirement({
- required String fileKey,
- required String label,
- required UFileType allowedFileType,
- required String uploadApiEndpoint,
- int maxFileSizeMB = 5,
- List<
String> ? allowedExtensions, - bool isRequired = true,
- int? maxCount = 1,
- int? minCount,
- String? uploadMethod = "POST",
- Map<
String, String> ? additionalFormData, - bool compressImage = false,
- double? imageQuality,
- int? resizeToWidth,
- int? resizeToHeight,
- String? cropAspectRatio,
- bool useCamera = false,
- String? deleteApiEndpoint,
- String? previewUrlTemplate,
Implementation
UserFlowFileRequirement({
required this.fileKey,
required this.label,
required this.allowedFileType,
required this.uploadApiEndpoint,
this.maxFileSizeMB = 5,
this.allowedExtensions,
this.isRequired = true,
this.maxCount = 1,
this.minCount,
this.uploadMethod = "POST",
this.additionalFormData,
this.compressImage = false,
this.imageQuality,
this.resizeToWidth,
this.resizeToHeight,
this.cropAspectRatio,
this.useCamera = false,
this.deleteApiEndpoint,
this.previewUrlTemplate,
});