FilePicker constructor

const FilePicker({
  1. Key? key,
  2. required BuildContext context,
  3. required FileData fileData,
  4. required dynamic onSelected(
    1. FileData fileData
    ),
  5. dynamic onCancel(
    1. String message
    )?,
  6. dynamic onDeleted(
    1. FileData fileData
    )?,
  7. bool camera = true,
  8. bool gallery = true,
  9. bool document = true,
  10. bool view = true,
  11. bool delete = true,
  12. bool crop = true,
  13. int? maxFileSizeInMb,
  14. bool cropOnlySquare = false,
  15. String cropperToolbarTitle = Files.cropperToolbarTitle,
  16. Color cropperToolbarColor = Files.cropperToolbarColor,
  17. Color cropperToolbarWidgetsColor = Files.cropperToolbarWidgetsColor,
  18. List<String> allowedExtensions = Files.allowedAllExtensions,
  19. double? width,
  20. double? height,
  21. Widget? child,
})

Implementation

const FilePicker(
    {Key? key,
    required this.context,
    required this.fileData,
    required this.onSelected,
    this.onCancel,
    this.onDeleted,
    this.camera = true,
    this.gallery = true,
    this.document = true,
    this.view = true,
    this.delete = true,
    this.crop = true,
    this.maxFileSizeInMb,
    this.cropOnlySquare = false,
    this.cropperToolbarTitle = Files.cropperToolbarTitle,
    this.cropperToolbarColor = Files.cropperToolbarColor,
    this.cropperToolbarWidgetsColor = Files.cropperToolbarWidgetsColor,
    this.allowedExtensions = Files.allowedAllExtensions,
    this.width,
    this.height,
    this.child})
    : super(key: key);